List<E>.empty constructor

  1. @Since("2.9")
List<E>.empty({bool growable: false })

Creates a new empty list.

If growable is false, which is the default, the list is a fixed-length list of length zero. If growable is true, the list is growable and equivalent to <E>[].

Implementation

@Since("2.9")
external factory List.empty({bool growable = false});