flutter_modular library
Classes
-
BindConfig<
T> -
ChildRoute<
T> - Represents a route in the modular route tree. You will be asked for a route name which should always start with '/' and a widget which will be re-rendered when the route is requested.
- CustomTransition
- Disposable
- A class which implements Disposable can be disposed automatically once user leaves a Module
- Injector
- Register and get binds
- ModularApp
- Widget responsible for starting the Modular engine. This should be, if possible, the first widget in your application.
- ModularAppState
- ModularArguments
- Object that clusters all arguments and parameters retrieved or produced during a route search.
- ModularFlags
- Flags can change Modular behavior. isDebug = Enables text printing for debugging. isCupertino = Works with Cupertino-style routes. experimentalNotAllowedParentBinds = Prohibits taking any bind of parent modules, forcing the imports of the same in the current module to be accessed. This is the same behavior as the system.
- ModularRoute
- Module
-
ModuleRoute<
T> - This route represents a cluster of routes from another module that will be concatenated to the context of the parent module.
-
PageTransition<
T> -
ParallelRoute<
T> - RedirectRoute
- A route to redirect.
- RouteGuard
- RouteGuard implements Middleware and adds guard behavior, authorizing or not the route via the canActivate() method;
- RouteManager
- RouterOutlet
- It acts as a Nested Browser that will be populated by the children of this route.
- RouterOutletState
- visible for test
-
WildcardRoute<
T> - Escape route if nothing is found in current context. Usually serves as a wildcard, and is called if no path matching the context is found.
Extensions
- InjectorExtends on Injector
- Extension to add args in AutoInjector class
- ModularWatchExtension on BuildContext
- RouteManageExt on RouteManager
Properties
- Modular → IModularBase
-
Instance of Modular for search binds and route.
no setter
Functions
-
cleanGlobals(
) → void - clean all
-
cleanModular(
) → void - clean Modular
-
downToUp<
T> (ModularChild builder, Duration transitionDuration, RouteSettings settings, bool maintainState) → PageRouteBuilder< T> -
fadeInTransition<
T> (ModularChild builder, Duration transitionDuration, RouteSettings settings, bool maintainState) → PageRouteBuilder< T> -
leftToRight<
T> (ModularChild builder, Duration transitionDuration, RouteSettings settings, bool maintainState) → PageRouteBuilder< T> -
leftToRightWithFade<
T> (ModularChild builder, Duration transitionDuration, RouteSettings settings, bool maintainState) → PageRouteBuilder< T> -
rightToLeft<
T> (ModularChild builder, Duration transitionDuration, RouteSettings settings, bool maintainState) → PageRouteBuilder< T> -
rightToLeftWithFade<
T> (ModularChild builder, Duration transitionDuration, RouteSettings settings, bool maintainState) → PageRouteBuilder< T> -
rotate<
T> (ModularChild builder, Duration transitionDuration, RouteSettings settings, bool maintainState) → PageRouteBuilder< T> -
scale<
T> (ModularChild builder, Duration transitionDuration, RouteSettings settings, bool maintainState) → PageRouteBuilder< T> -
setPrintResolver(
void fn(String text)) → void -
size<
T> (ModularChild builder, Duration transitionDuration, RouteSettings settings, bool maintainState) → PageRouteBuilder< T> -
upToDown<
T> (ModularChild builder, Duration transitionDuration, RouteSettings settings, bool maintainState) → PageRouteBuilder< T>
Typedefs
- ModularChild = Widget Function(BuildContext context)
-
RouteBuilder<
T> = Route< T> Function(WidgetBuilder , RouteSettings) -
SelectCallback<
T> = dynamic Function(T bind)
Exceptions / Errors
- AutoInjectorException
-
AutoInjection Exception with ToString auto configured
message : message of exception
stackTrace : traces of exception