clone method

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

Clone another listing from an existing listing.

All contents are shallow copies.

If growable is set to true, the returned list can be modified.

既存のリストから別のリストをクローンします。

中身はすべてシャローコピーです。

growabletrueにすると、返されるリストは変更可能になります。

Implementation

List<T> clone({bool growable = false}) {
  return List<T>.from(this, growable: growable);
}