setLargeIntList method

void setLargeIntList(
  1. List<(String, int)> items
)

Store a list of 64-bit integer pairs.

Parameters

  • items: The list of 64-bit integer pairs to store.

Also see:

Implementation

void setLargeIntList(List<(String, int)> items) {
  final List<Pair<String, int>> pairs = items
      .map((final (String, int) item) => Pair<String, int>(item.$1, item.$2))
      .toList();

  objectMethod(
    pointerId,
    'SettingsService',
    'setValueInt64List',
    args: <String, dynamic>{'values': pairs},
  );
}