operator + method

  1. @override
Uint64List operator +(
  1. Object other
)

Returns the concatenation of this list and other.

Returns a new list containing the elements of this list followed by the elements of other.

The default behavior is to return a normal growable list. Some list types may choose to return a list of the same type as themselves (see Uint8List.+);

Implementation

@override
Uint64List operator +(Object other) {
  if (other is Uint64List) return Uint64List.fromList(inner + other.inner);
  if (other is $data.Uint64List) return Uint64List.fromList(inner + other);
  if (other is List<int>) return Uint64List.fromList(inner + other);
  if (other is Iterable<int>) {
    return Uint64List.fromList(inner + other.toList(growable: false));
  }
  throw ArgumentError.value(other);
}