description

# List<E>.empty constructor

List<E>.empty({

1. 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>[]`.

    final growableList = List.empty(growable: true); // []
    growableList.add(1); // [1]

    final fixedLengthList = List.empty(growable: false);
    fixedLengthList.add(1); // error

## Implementation

    external factory List.empty({bool growable = false});