setDoubleList method

void setDoubleList(
  1. List<(String, double)> items
)

Store a list of double pairs.

Parameters

  • items: The list of double pairs to store.

Also see:

Implementation

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

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