finds<T extends Object?> method

List<T> finds<T extends Object?>({
  1. Object? key,
  2. List<T> defaultValue = const [],
  3. ObjectBuilder<T>? builder,
})

Implementation

List<T> finds<T extends Object?>({
  Object? key,
  List<T> defaultValue = const [],
  ObjectBuilder<T>? builder,
}) {
  final List<T>? arguments = findsOrNull(
    key: key,
    defaultValue: defaultValue,
    builder: builder,
  );
  if (arguments != null) {
    return arguments;
  } else {
    throw UnimplementedError("List<$T> didn't find from this object");
  }
}