MyAppDynamic constructor

const MyAppDynamic({
  1. Key? key,
  2. required Widget homePageBuilder(
    1. Widget
    ),
  3. Widget loginPageBuilder(
    1. Widget
    )?,
  4. Map<String, dynamic Function(BuildContext, GoRouterState)> lstRouteAdicionales = const <String, Function(BuildContext, GoRouterState)>{},
  5. Map<String, dynamic Function(BuildContext, GoRouterState)> lstRouteAdicionalesLogin = const <String, Function(BuildContext, GoRouterState)>{},
  6. required String rootRoute,
  7. dynamic onRedirect(
    1. BuildContext,
    2. GoRouterState
    )?,
  8. String? loginRoute,
  9. required RedirectUri redirectUri,
  10. required String originColeccion,
  11. required String title,
  12. bool soloColeccionesOrigen = true,
  13. ThemeData? lightTheme,
  14. ThemeData? darkTheme,
  15. required String coleccionFuncionesBackend,
  16. required List<RouteItem> lstVistasSistema,
  17. required String coleccionAuth,
  18. List<ItemModel> lstColeccionesExtrasAuth = const [],
  19. List<String> coleccionesExtras = const [],
  20. required String clientId,
  21. required String clientSecret,
  22. required String endpointApi,
  23. required String endpointAuth,
  24. required String endpointSocket,
  25. Map<String, CustomWidgetBuilder> customWidgetBuilders = const {},
  26. Widget? loginRouteWidget,
  27. bool dynamicEnableDebugLogs = false,
  28. bool cloudDBEnableDebugLogs = false,
  29. bool authApiRestEnableDebugLogs = false,
  30. bool utilProviderEnableDebugLogs = false,
  31. bool apiRestEnableDebugLogs = false,
  32. 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,
});