stringListDecoder function

Decoder<List<String>> stringListDecoder()

Decoder for a Setting that manages a List of Strings. If the value is not in the underlying Storage, an empty List is returned.

Implementation

Decoder<List<String>> stringListDecoder() {
  return (value) => value is! StringListSettingValue ? <String>[] : value.value;
}