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

hashCode int
The hash code for this object.
no setterinherited
map Map<String, dynamic>
Gets this Params as a Map.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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.