setStringList method

  1. @override
Future<void> setStringList(
  1. String key,
  2. List<String> value
)
override

Saves a list of strings with the given key.

This method stores a list of string values in the storage, associating it with the specified key. If a value already exists for this key, it will be replaced.

Parameters:

  • key - The unique identifier for the string list.
  • value - The list of strings to store.

Returns a Future that completes when the string list has been successfully stored.

Throws:

Implementation

@override
Future<void> setStringList(String key, List<String> value) async => _data[key] = value;