MutableArray constructor

MutableArray([
  1. Iterable<Object?>? data
])

Creates a MutableArray, optionally initialized with data.

Allowed value types are Iterable, Array, Blob, DateTime, Map<String, Object?>, Dictionary, null, number types, and String.

The collections must contain only the above types.

Implementation

factory MutableArray([Iterable<Object?>? data]) {
  final array = MutableArrayImpl(MArray());
  if (data != null) {
    array.setData(data);
  }
  return array;
}