NotifiableList<E>.from constructor
NotifiableList<E>.from (})
Create a NotifiableList by adding all elements from elements
, regardless of their type.
If propagateNotification
is true
(default value), this
NotifiableList will notify all its listeners when a child notify its
listeners as well.
Implementation
@override
NotifiableList.from(Iterable<dynamic> elements,
{bool growable = true, propagateNotification = true})
: super() {
_values = List<E>.from(elements, growable: growable);
this.propagateNotification = propagateNotification;
if (_propagateNotification) _startPropagateNotification();
}