saveList static method

Future<void> saveList(
  1. String key,
  2. List value
)

Saves a list to shared storage.

Implementation

static Future<void> saveList(String key, List<dynamic> value) async {
  await _channel.invokeMethod('saveString', {
    'key': key,
    'value': jsonEncode(value),
    'appGroupId': _appGroupId,
  });
}