# instantiateFromSupplier method

1. @protected

Future<Object> instantiateFromSupplier(

1. Object supplier

)

## Implementation

    @protected
    Future<Object> instantiateFromSupplier(Object supplier) async {
      if (supplier is Supplier) {
        return supplier.getOrThrow();
      }

      if (supplier is ThrowingSupplier) {
        return supplier.getOrThrow();
      }

      return supplier;
    }