decodeListOrNull<I> method
Decodes the data as a nullable list of elements.
Optionally takes a Decodable to decode the elements of the list.
Implementation
@override
List<I>? decodeListOrNull<I>({Decodable<I>? using}) {
if (_value == null) return null;
try {
return _decodeList(_value as List, using);
} on TypeError {
throw CodableException.unexpectedType(expected: 'List<$I>?', actual: '${_value.runtimeType}', data: _value);
}
}