routedColor method
- dynamic context,
- dynamic ref,
- dynamic route
Implementation
Color? routedColor(BuildContext context, WidgetRef ref, Routes route) {
final currentRoute = ref.watch(currentRoutingLocation);
if (currentRoute == route.route) {
return Theme.of(context).colorScheme.secondary;
} else {
return null;
}
}