JetConfig class abstract

Configuration class for Jet framework that defines app-wide settings.

This abstract class provides a centralized way to configure various aspects of your Flutter application including adapters, localization, and theming.

Example usage:

class AppConfig extends JetConfig {
  @override
  List<JetAdapter> get adapters => [
    RouterAdapter(),
    DatabaseAdapter(),
  ];

  @override
  List<Locale> get supportedLocales => [
    const Locale('en'),
    const Locale('es'),
  ];

  @override
  Locale? get defaultLocale => const Locale('en');

  @override
  ThemeData? get theme => ThemeData(
    colorScheme: ColorScheme.fromSeed(seedColor: Colors.blue),
  );
}

Constructors

JetConfig.new()

Properties

actions Map<Type, Action<Intent>>?
Global actions for the application.
no setter
adapters List<JetAdapter>
List of adapters that provide additional functionality to the app.
no setter
builder Widget Function(BuildContext, Widget?)?
Builder function to wrap the entire app.
no setter
checkerboardOffscreenLayers bool
Whether to checkerboard layers rendered to offscreen bitmaps.
no setter
checkerboardRasterCacheImages bool
Whether to checkerboard raster cache images for debugging.
no setter
color Color?
The primary color to use for the application in the operating system interface.
no setter
darkTheme ThemeData?
The dark theme configuration for the application.
no setter
debugShowCheckedModeBanner bool
no setter
defaultLocale Locale?
The default locale for the application.
no setter
dioLoggerConfig JetDioLoggerConfig
no setter
errorHandler JetBaseErrorHandler
The error handler for the application.
no setter
fontFamily String
no setter
hashCode int
The hash code for this object.
no setterinherited
highContrastDarkTheme ThemeData?
High contrast dark theme for accessibility.
no setter
highContrastTheme ThemeData?
High contrast theme for accessibility.
no setter
loader JetLoader
The loader for the application.
no setter
localizationsDelegates List<LocalizationsDelegate<Object>>
List of localization delegates for custom localization.
no setter
no setter
onGenerateTitle String Function(BuildContext)?
A function that generates the title dynamically based on context.
no setter
restorationScopeId String?
The app's restoration scope ID for state restoration.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollBehavior ScrollBehavior?
Custom scroll behavior for the entire application.
no setter
shortcuts Map<ShortcutActivator, Intent>?
Global shortcuts for the application.
no setter
showErrorStackTrace bool
no setter
showPerformanceOverlay bool
Whether to show performance overlay for debugging.
no setter
showSemanticsDebugger bool
Whether to show semantics debugger for accessibility testing.
no setter
supportedLocales List<LocaleInfo>
List of locales that the application supports.
no setter
theme ThemeData?
The light theme configuration for the application.
no setter
themeAnimationCurve Curve
Animation curve for theme transitions.
no setter
themeAnimationDuration Duration
Duration for theme change animations.
no setter
themeMode ThemeMode?
The theme mode for the application.
no setter
title String
The title of the application.
no setter

Methods

getDarkTheme() ThemeData?
getTheme() ThemeData?
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.
inherited