clear method

  1. @useResult
IList<T> clear()

Returns an empty list with the same configuration.

Implementation

@useResult
IList<T> clear() => IListImpl.empty<T>(config);