find<T extends Object?> method

T find<T extends Object?>({
  1. Object? key,
  2. T? defaultValue,
  3. ObjectBuilder<T>? builder,
})

Implementation

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