NotifiableList<E>.of constructor

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

Create a NotifiableList by adding all elements of elements of type E.

If propagateNotification is true (default value), this NotifiableList will notify all its listeners when a child notify its listeners as well.

Implementation

@override
NotifiableList.of(Iterable<E> elements,
    {bool growable = true, propagateNotification = true})
    : super() {
  _values = List<E>.of(elements, growable: growable);
  this.propagateNotification = propagateNotification;
  if (_propagateNotification) _startPropagateNotification();
}