setList static method

Future<bool>? setList(
  1. String key,
  2. List value
)

Implementation

static Future<bool>? setList(String key, List value) {
  return prefs?.setString(key, json.encode(value));
}