Params class abstract
Represents the optional params which can be passed to the Injector to build dependencies.
Constructors
- Params.empty()
-
Creates an empty
Param
instance.factory -
Params.fromMap(Map<
String, dynamic> map) -
Creates Params from a Map
factory
- Params.fromParams(Params params)
-
Creates a
Param
instance from another.factory
Properties
Methods
-
contains(
String name) → bool - Checks whether a value exists.
-
get<
T> (String name) → T - Gets the value or throws.
-
getOptional<
T> (String name) → Optional< T> - Gets the param if exists.
-
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
Static Methods
-
builder(
) → ParamsBuilder - Gets a ParamsBuilder to create Params instances.