decode method

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

Implementation

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