AppModule class
Module for configuring the entire application.
Constructors
-
AppModule({required String title, String? logoUrl, String initialRoute = "/", String? officialUrl, String? supportUrl, String? privacyPolicyUrl, String? termsUrl, List<
RoleConfig> roles = const [], ThemeColor? lightTheme, ThemeColor? darkTheme, ThemeMode themeMode = ThemeMode.system, PageTransition initialPageTransition = PageTransition.fade, DesignType designType = DesignType.modern, bool webStyle = true}) -
Module for configuring the entire application.
const
Properties
- darkTheme → ThemeColor?
-
Theme color for dark.
final
- designType → DesignType
-
App design type.
final
- enabled → bool
-
true
if Module is enabled.finalinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- id → String?
-
ID of the module.
finalinherited
- initialPageTransition → PageTransition
-
Initial page transition.
final
- initialRoute → String
-
Initial route path.
final
- lightTheme → ThemeColor?
-
Theme color for light.
final
- logoUrl → String?
-
Logo Image URL.
final
-
Menu Settings.
final
- officialUrl → String?
-
Official Site URL.
final
- privacyPolicyUrl → String?
-
Privacy Policy URL.
final
-
roles
→ List<
RoleConfig> -
App roles.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- supportUrl → String?
-
URL of the support site.
final
- termsUrl → String?
-
URL of Terms of Use.
final
- themeMode → ThemeMode
-
Theme Mode.
final
- title → String
-
Page title.
final
- type → String
-
Module Type.
no setterinherited
- webStyle → bool
-
If you want to use the style for web when you are on the web, use
true
.final
Methods
-
fromMap(
dynamic map) → AppModule? -
Convert the module information from
DynamicMap
.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → dynamic -
Convert the module information to
DynamicMap
.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited