MyAppDynamic constructor
const
MyAppDynamic({
- Key? key,
- required Widget homePageBuilder(),
- Widget loginPageBuilder()?,
- Map<
String, dynamic Function(BuildContext, GoRouterState)> lstRouteAdicionales = const <String, Function(BuildContext, GoRouterState)>{}, - Map<
String, dynamic Function(BuildContext, GoRouterState)> lstRouteAdicionalesLogin = const <String, Function(BuildContext, GoRouterState)>{}, - required String rootRoute,
- dynamic onRedirect(
- BuildContext,
- GoRouterState
- String? loginRoute,
- required RedirectUri redirectUri,
- required String originColeccion,
- required String title,
- bool soloColeccionesOrigen = true,
- ThemeData? lightTheme,
- ThemeData? darkTheme,
- required String coleccionFuncionesBackend,
- required List<
RouteItem> lstVistasSistema, - required String coleccionAuth,
- List<
ItemModel> lstColeccionesExtrasAuth = const [], - List<
String> coleccionesExtras = const [], - required String clientId,
- required String clientSecret,
- required String endpointApi,
- required String endpointAuth,
- required String endpointSocket,
- Map<
String, CustomWidgetBuilder> customWidgetBuilders = const {}, - Widget? loginRouteWidget,
- bool dynamicEnableDebugLogs = false,
- bool cloudDBEnableDebugLogs = false,
- bool authApiRestEnableDebugLogs = false,
- bool utilProviderEnableDebugLogs = false,
- bool apiRestEnableDebugLogs = false,
- bool agregaListenersDynamicCrud = true,
Implementation
const MyAppDynamic({
super.key,
required this.homePageBuilder,
this.loginPageBuilder,
this.lstRouteAdicionales =
const <String, Function(BuildContext, GoRouterState)>{},
this.lstRouteAdicionalesLogin =
const <String, Function(BuildContext, GoRouterState)>{},
required this.rootRoute,
this.onRedirect,
this.loginRoute,
required this.redirectUri,
required this.originColeccion,
required this.title,
this.soloColeccionesOrigen = true,
this.lightTheme,
this.darkTheme,
required this.coleccionFuncionesBackend,
required this.lstVistasSistema,
required this.coleccionAuth,
this.lstColeccionesExtrasAuth = const [],
this.coleccionesExtras = const [],
required this.clientId,
required this.clientSecret,
required this.endpointApi,
required this.endpointAuth,
required this.endpointSocket,
this.customWidgetBuilders = const {},
this.loginRouteWidget,
this.dynamicEnableDebugLogs = false,
this.cloudDBEnableDebugLogs = false,
this.authApiRestEnableDebugLogs = false,
this.utilProviderEnableDebugLogs = false,
this.apiRestEnableDebugLogs = false,
this.agregaListenersDynamicCrud = true,
});