clone method

List<T> clone({
  1. bool immutable = false,
})

Implementation

List<T> clone({bool immutable = false}) {
  if (immutable) return this.immutable;
  return List<T>.from(this);
}