ConfigData<T> class
A class that holds configuration data for the application.
Constructors
-
ConfigData({required ValueChanged<
Routing?> ? routingCallback, required Transition? defaultTransition, required VoidCallback? onInit, required VoidCallback? onReady, required VoidCallback? onDispose, required bool? enableLog, required LogWriterCallback? logWriterCallback, required SmartManagement smartManagement, required Duration? transitionDuration, required bool? defaultGlobalState, required List<GetPage< ? getPages, required GetPage<T> >T> ? unknownRoute, required RouteInformationProvider? routeInformationProvider, required RouteInformationParser<Object> ? routeInformationParser, required RouterDelegate<Object> ? routerDelegate, required BackButtonDispatcher? backButtonDispatcher, required GlobalKey<ScaffoldMessengerState> ? scaffoldMessengerKey, required Map<String, Map< ? translationsKeys, required Translations? translations, required Locale? locale, required Locale? fallbackLocale, required String? initialRoute, required CustomTransition? customTransition, required Widget? home, List<String, String> >Bind< ? binds, ThemeData? theme, ThemeData? darkTheme, ThemeMode? themeMode, Key? unikey, bool testMode = false, bool defaultOpaqueRoute = true, Duration defaultTransitionDuration = const Duration(milliseconds: 300), Curve defaultTransitionCurve = Curves.easeOutQuad, Curve defaultDialogTransitionCurve = Curves.easeOutQuad, Duration defaultDialogTransitionDuration = const Duration(milliseconds: 300), Map<T> >String, String?> parameters = const <String, String?>{}, Routing? routing, bool? defaultPopGesture}) - Constructs a new ConfigData instance.
Properties
- backButtonDispatcher → BackButtonDispatcher?
-
Dispatcher for back button events.
final
-
binds
→ List<
Bind< ?T> > -
List of bindings for dependency injection.
final
- customTransition → CustomTransition?
-
Custom transition animation for route changes.
final
- darkTheme → ThemeData?
-
Theme data for dark mode.
final
- defaultDialogTransitionCurve → Curve
-
Curve for default dialog transition animations.
final
- defaultDialogTransitionDuration → Duration
-
Duration for default dialog transition animations.
final
- defaultGlobalState → bool?
-
Flag indicating whether to use global state by default.
final
- defaultOpaqueRoute → bool
-
Flag indicating whether to make routes opaque by default.
final
- defaultPopGesture → bool
-
Flag indicating whether to enable default pop gesture behavior.
final
- defaultTransition → Transition?
-
Default transition animation for route changes.
final
- defaultTransitionCurve → Curve
-
Curve for default transition animations.
final
- defaultTransitionDuration → Duration
-
Duration for default transition animations.
final
- enableLog → bool?
-
Flag to enable or disable logging.
final
- fallbackLocale → Locale?
-
Fallback locale to use when the requested locale is not available.
final
-
getPages
→ List<
GetPage< ?T> > -
List of routes/pages in the application.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- home → Widget?
-
Widget to use as the home screen.
final
- initialRoute → String?
-
Initial route of the application.
final
- locale → Locale?
-
Locale to use for localization.
final
- logWriterCallback → LogWriterCallback?
-
Callback function for custom log writing.
final
-
GlobalKey for the navigator.
final
-
List of observers for the navigator.
final
- onDispose → VoidCallback?
-
Callback function called when the application is disposed.
final
- onInit → VoidCallback?
-
Callback function called when the application initializes.
final
- onReady → VoidCallback?
-
Callback function called when the application is ready.
final
-
parameters
→ Map<
String, String?> -
Additional parameters for configuration.
final
-
routeInformationParser
→ RouteInformationParser<
Object> ? -
Parser for route information.
final
- routeInformationProvider → RouteInformationProvider?
-
Provider for route information.
final
-
routerDelegate
→ RouterDelegate<
Object> ? -
Delegate for managing routing and navigation.
final
- routing → Routing
-
Routing configuration.
final
-
routingCallback
→ ValueChanged<
Routing?> ? -
Callback for routing changes.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
scaffoldMessengerKey
→ GlobalKey<
ScaffoldMessengerState> ? -
GlobalKey for the ScaffoldMessenger.
final
- smartManagement → SmartManagement
-
Smart management strategy for state management.
final
-
snackBarQueue
→ SnackBarQueue<
T> -
final
- testMode → bool
-
Flag indicating whether the application is in test mode.
final
- theme → ThemeData?
-
Theme data for light mode.
final
- themeMode → ThemeMode?
-
Mode for applying themes (e.g., light, dark, system).
final
- transitionDuration → Duration?
-
Duration for route transition animations.
final
- translations → Translations?
-
Translations for localization.
final
-
translationsKeys
→ Map<
String, Map< ?String, String> > -
Localization keys for translations.
final
- unikey → Key?
-
Key for uniquely identifying the configuration instance.
final
-
unknownRoute
→ GetPage<
T> ? -
Route to use when an unknown route is encountered.
final
Methods
-
copyWith(
{ValueChanged< Routing?> ? routingCallback, Transition? defaultTransition, VoidCallback? onInit, VoidCallback? onReady, VoidCallback? onDispose, bool? enableLog, LogWriterCallback? logWriterCallback, SmartManagement? smartManagement, List<Bind< ? binds, Duration? transitionDuration, bool? defaultGlobalState, List<T> >GetPage< ? getPages, GetPage<T> >T> ? unknownRoute, RouteInformationProvider? routeInformationProvider, RouteInformationParser<Object> ? routeInformationParser, RouterDelegate<Object> ? routerDelegate, BackButtonDispatcher? backButtonDispatcher, GlobalKey<ScaffoldMessengerState> ? scaffoldMessengerKey, Map<String, Map< ? translationsKeys, Translations? translations, Locale? locale, Locale? fallbackLocale, String? initialRoute, CustomTransition? customTransition, Widget? home, bool? testMode, Key? unikey, ThemeData? theme, ThemeData? darkTheme, ThemeMode? themeMode, bool? defaultPopGesture, bool? defaultOpaqueRoute, Duration? defaultTransitionDuration, Curve? defaultTransitionCurve, Curve? defaultDialogTransitionCurve, Duration? defaultDialogTransitionDuration, Routing? routing, Map<String, String> >String, String?> ? parameters}) → ConfigData<T> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override