decode method

  1. @override
List<String>? decode(
  1. dynamic value
)
override

Implementation

@override
List<String>? decode(value) {
  return switch (value) {
    List<String?>() => value.nonNulls.toList(),
    String() => [value],
    null => null,
    _ => throw TypeDecodeException.typeMismatch(
      List<String>,
      value.runtimeType,
    ),
  };
}