InitBuilderArgs class

Inheritance
Available Extensions

Constructors

InitBuilderArgs(BuildContext context, [dynamic args])

Properties

context BuildContext
final
data Map
Returns currently stored data. Mostly used by framework. Do not modify this data directly ! Consider using ControlArgs.set, ControlArgs.get, ControlArgs.add functions or [] operators.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add<T>({dynamic key, required dynamic value}) → void
Adds value to data store under given key. ControlFactory.keyOf is used to determine store key.
inherited
clear() → void
Clears whole data store.
inherited
combine(ControlArgs args) → void
Combines this store with given args.
inherited
containsKey(dynamic key) bool
Whether this args contains the given key.
inherited
dispose() → void
Used to clear and dispose object. After this method call is object typically unusable and ready for GC. Can be called multiple times!
inherited
get<T>({dynamic key, T? defaultValue}) → T?
Returns object of given key or defaultValue.
inherited
getAll<T>({Predicate? test}) List<T>
Returns all items for given test.
inherited
getWithFactory<T>({dynamic key, T defaultValue()?}) → T?
Returns object of given key or initialize defaultValue and stores that value to args store.
inherited
merge(ControlArgs args) ControlArgs
Combines this store with given args. Returns new ControlArgs that contains both args.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pop<T>({dynamic key}) → T?
Removes and returns item by Type or key.
inherited
printDebugStore() → void
inherited
remove<T>({dynamic key}) → T?
Removes item by Type or key.
inherited
removeAll<T>({Predicate? test}) → void
Removes all items for given test.
inherited
set(dynamic args) → void
Parses input data and stores them as key: value pair. Can store any type of data - Map, Iterable, Objects and more.. Map - is directly added to data store. Iterable - is parsed and data are stored under their Type. Object - is stored under his Type. Other ControlArgs is combined.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](dynamic key) → dynamic
Returns object of given key or null.
inherited
operator []=(dynamic key, dynamic value) → void
Sets value directly to store with given key. Consider using ControlArgs.set or ControlArgs.add to prevent use of misleading key.
inherited