Movatterモバイル変換


[0]ホーム

URL:


menu
  1. Dart
  2. dart:html
  3. ImmutableListMixin<E>
  4. add method
add
description

add method

voidadd(
  1. Evalue
)
override

Addsvalue to the end of this list,extending the length by one.

The list must be growable.

final numbers = <int>[1, 2, 3];numbers.add(4);print(numbers); // [1, 2, 3, 4]

Implementation

void add(E value) {  throw new UnsupportedError("Cannot add to immutable List.");}
  1. Dart
  2. dart:html
  3. ImmutableListMixin<E>
  4. add method
ImmutableListMixin class

[8]ページ先頭

©2009-2025 Movatter.jp