zero<T> function

ImmutableList<T> zero<T>()

Returns an empty ImmutableList of the specified type.

Example:

final list = zero<int>();
print(list);  // Outputs: ImmutableList([])

@return An empty ImmutableList of type T.

Implementation

ImmutableList<T> zero<T>() => ImmutableList<T>([]);