setStringList static method

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

Saves a list of strings value to persistent storage in the background. Returns false if key is null.

Implementation

static Future<bool> setStringList(String? key, List<String>? value) async {
  if (key == null || value == null) {
    return false;
  }
  final prefs = await instance;
  return prefs.setStringList(key, value);
}