Movatterモバイル変換


[0]ホーム

URL:


menu
  1. Dart
  2. dart:core
  3. Map<K,V>
  4. updateAll abstract method
updateAll
description

updateAll abstract method

voidupdateAll(
  1. Vupdate(
    1. Kkey,
    2. Vvalue
    )
)

Updates all values.

Iterates over all entries in the map and updates them with the resultof invokingupdate.

final terrestrial = <int, String>{1: 'Mercury', 2: 'Venus', 3: 'Earth'};terrestrial.updateAll((key, value) => value.toUpperCase());print(terrestrial); // {1: MERCURY, 2: VENUS, 3: EARTH}

Implementation

void updateAll(V update(K key, V value));
  1. Dart
  2. dart:core
  3. Map<K,V>
  4. updateAll abstract method
Map class

[8]ページ先頭

©2009-2025 Movatter.jp