MicroAppConfig class
Constructors
- MicroAppConfig({bool nativeEventsEnabled = false, String pathSeparator = MicroAppPathSeparator.slash, bool consoleLogsEnabled = false, MicroAppBaseRoute? appBaseRoute, MicroPageTransitionType pageTransitionType = MicroPageTransitionType.platform, OnRouteNotRegistered? onRouteNotRegistered})
Properties
- appBaseRoute → MicroAppBaseRoute
-
Default baseRoute = "/"
final
- consoleLogsEnabled → bool
-
disable all console logs
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- nativeEventsEnabled → bool
-
if (nativeEventsEnabled: false) it will suppress all native event emitters of micro-apps (default is false)
⚠️ if you don't intend to implement native side callbacks, then disable events
nativeEventsEnabled = false
in order to Flutter doesn't show exceptions in the consolefinal -
final
-
final
- onRouteNotRegistered → OnRouteNotRegistered?
-
When the route is not registered, and this is not null, then it will be
called, instead of try to open a route or native route
Prefer to use
context.maNav
or NavigatorInstance instead of Navigator.of(context) If using Navigator.of(context), override onGenerateRoutefinal - pageTransitionType → MicroPageTransitionType
-
Default page transition
final
- pathSeparator → String
-
pathSeparator route segments
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{bool? nativeEventsEnabled, String? pathSeparator, MicroAppBaseRoute? appBaseRoute, bool? consoleLogsEnabled, MicroPageTransitionType? pageTransitionType, OnRouteNotRegistered? onRouteNotRegistered}) → MicroAppConfig - Protype MicroAppConfig
-
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