NotifiableList<E>.from constructor Null safety

  1. @override
NotifiableList<E>.from(
  1. Iterable elements,
  2. {bool growable = true,
  3. dynamic propagateNotification = true}
)

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();
}