stacked_annotations library
Classes
-
AdaptiveRoute<
T> - AdaptiveRouter
-
CupertinoRoute<
T> - CupertinoRouter
-
CustomRoute<
T> - CustomRouter
- Defaults created routes to PageRouteBuilder unless overridden by AutoRoute annotation
- DependencyRegistration
-
DependencyRegistration
is an abstract class that provides a common structure for registering dependencies with theget_it
locator. Different subclasses provide different registration methods, such as Singleton, LazySingleton, Factory, etc. - Environment
-
Environment
is a class that provides preset constants to identify different types of environments where your app might be running. - EnvironmentFilter
- filter for whether to register for the given set of environments clients can extend this class to maker their own environmentFilters
- Factory
-
Factory
is a class that extends DependencyRegistration. It provides a way to register an object as a Factory to theget_it
locator. - FactoryParam
- Marks a constructor param as factoryParam so it can be passed to the resolver function
- FactoryWithParam
-
FactoryWithParam
is a class that extends DependencyRegistration. It provides a way to register an object as a Factory with parameter to theget_it
locator. - FormDateField
- Describes a date form field.
- FormDropdownField
- FormField
- Describes a form field to be generated
- FormTextField
- Describes an entry field on the form that takes text
- FormView
- The annotation to be used for a view that contains a Form
- InitializableDependency
-
InitializableDependency
is an abstract class intended to be implemented by any class which requires asynchronous initialization before being used. - InitializableSingleton
-
InitializableSingleton
is a class that extends DependencyRegistration. It provides a way to register an object as a Singleton to theget_it
locator. This means the object will be instantiated during the first fetch and then will stay alive in the memory and the same instance will be returned in the subsequent fetches. -
LazySingleton<
T> -
LazySingleton
is a class that extends DependencyRegistration. It provides a way to register an object as a Lazy Singleton to theget_it
locator. -
MaterialRoute<
T> - MaterialRouter
- NoEnvOrContains
-
This filter validates dependencies with no environment
keys or contain the provided
environment
- NoEnvOrContainsAll
- This filter validates dependencies with no environment keys, or the ones containing all the provided environments
- NoEnvOrContainsAny
- This filter validates dependencies with no environment keys, or the ones containing one of the provided environments
- PathParam
- Presolve
- QueryParam
- RedirectRoute
- SimpleEnvironmentFilter
- A simple filter that can be used directly for simple use cases without having to extend the base EnvironmentFilter
- Singleton
-
Singleton
is a class that extends DependencyRegistration. It provides a way to register an object as a Singleton to theget_it
locator. - StackedApp
- The annotation that defines a stacked application
- StackedBottomsheet
- Described the Bottomsheet functionality to generate in the app
- StackedDialog
- Described the Dialog functionality to generate in the app
- StackedLocator
- A thin wrapper around get_it to reduce the number of direct dependencies the user has to depend on.
- StackedLogger
- Defined the config for the logger in the app
-
StackedRoute<
T> -
T
is the results type returned from this page route MaterialPageRoute - StackedRouterAnnotation
- StaticDropdownItem
Constants
- factoryParam → const FactoryParam
- const instance of FactoryParam with default arguments
- kEnvironmentsName → const String
- pathParam → const PathParam
- queryParam → const QueryParam
Functions
-
ambiguate<
T> (T? value) → T? - This allows a value of type T or T? to be treated as a value of type T?.
Typedefs
-
EnvironmentFilterFunc
= bool Function(Set<
String> ) - a simple filter function to be used inside SimpleEnvironmentFilter