findsOrNull<T extends Object?> method
List<T> ?
findsOrNull<T extends Object?>({
- Object? key,
- List<
T> ? defaultValue, - ObjectBuilder<
T> ? builder,
Implementation
List<T>? findsOrNull<T extends Object?>({
Object? key,
List<T>? defaultValue,
ObjectBuilder<T>? builder,
}) {
final root = this;
final data = key == null
? root
: root is Map
? root[key]
: null;
final iterable = _vs(data, builder);
if (iterable == null) return defaultValue;
return List.from(iterable);
}