clone method
Clone another listing from an existing listing.
All contents are shallow copies.
If growable
is set to true
, the returned list can be modified.
既存のリストから別のリストをクローンします。
中身はすべてシャローコピーです。
growable
をtrue
にすると、返されるリストは変更可能になります。
Implementation
List<T> clone({bool growable = false}) {
return List<T>.from(this, growable: growable);
}