List<E>.empty constructor
- @Since("2.8")
- {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.8") external factory List.empty({bool growable = false});
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-core/List/List.empty.html