Movatterモバイル変換


[0]ホーム

URL:


menu
  1. Dart
  2. dart:core
  3. List<E>
  4. clear abstract method
clear
description

clear abstract method

voidclear()

Removes all objects from this list; the length of the list becomes zero.

The list must be growable.

final numbers = <int>[1, 2, 3];numbers.clear();print(numbers.length); // 0print(numbers); // []

Implementation

void clear();
  1. Dart
  2. dart:core
  3. List<E>
  4. clear abstract method
List class

[8]ページ先頭

©2009-2025 Movatter.jp