LabeledList<E>.empty constructor

LabeledList<E>.empty({
  1. bool growable = false,
})

Constructs a new empty LabeledList.

If growable is false, the returned list will be a fixed-length list, otherwise the list is growable and identical to the default constructor.

Implementation

LabeledList.empty({bool growable = false})
    : _labels = UniqueList<String?>.empty(growable: growable, strict: true),
      super(List<E>.empty(growable: growable), growable: growable);