Router typedef
Router =
Future? Function(BuildContext context, String routeName, Object? arguments)
A function that listens for navigation events.
Return navigation result
from this function
to get that in StateNotifier.
Implementation
typedef Router = Future<dynamic>? Function(
BuildContext context,
String routeName,
Object? arguments,
);