$List<T> method
Maps a value to a list of items.
Implementation
List<T> $List<T>(Object? value, T Function(Object?) converter) {
if (value case final List<Object?> value?) {
return value.map(converter).toList();
} else {
return <T>[];
}
}