ParamsNotifier class

Inheritance
Implemented types

Constructors

ParamsNotifier.new({required List<ParamBuilder> builders})

Properties

hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
items Map<String, ParamWrapper>
no setter
onParamAdded Stream<String>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
boolean(String id) ParamWrapper<bool>
override
color(String id) ParamWrapper<Color>
override
datetime(String id) ParamWrapper<DateTime>
override
defaultFor<T>(ParamWrapper<T> param) → T
override
deserialize(Map<String, dynamic> json) → void
Updates state of notifier.
dispose() → void
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener will throw after the object is disposed).
inherited
duration(String id) ParamWrapper<Duration>
override
dynamic$<T, T1, T2>(String id) ParamWrapper<T>
override
gradient(String id) ParamWrapper<Gradient>
override
integer(String id) ParamWrapper<int>
override
multi<T>(String id, List<T> values) MultiChoiceParamWrapper<T>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
number(String id) ParamWrapper<double>
override
register<TWrapper extends ParamWrapper<TParam>, TParam, T1, T2>(String id, {TWrapper wrapperFactory()?}) → TWrapper
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
reset() → void
override
serialize() Map<String, dynamic>
single<T>(String id, List<T> values) SingleChoiceParamWrapper<T>
override
string(String id) ParamWrapper<String>
override
toString() String
A string representation of this object.
inherited
update<T>(String id, T value) → void
override
updateDefaultValues(Map<String, dynamic> defaultValues) → void
override

Operators

operator ==(Object other) bool
The equality operator.
inherited