add method
void
add(
- dynamic value
Adds a value to the state. Throws an error if the state is not a List.
Implementation
void add(dynamic value) {
if (_value is List) {
(_value as List).add(value);
} else {
throw ArgumentError(
'Ease of type $T cannot add values of type ${value.runtimeType}');
}
_listener?.call();
}