NotificationList<E>.generate constructor

NotificationList<E>.generate(
  1. int length,
  2. E generator(
    1. int index
    ),
  3. {bool growable = true}
)

Implementation

factory NotificationList.generate(int length, E generator(int index),
    {bool growable = true}) {
  var returnValue = NotificationList<E>();

  returnValue._l = List<E>.generate(length, generator, growable: growable);

  return returnValue;
}