isRegistered<T extends Object> method
Checks if an instance of type T
is registered.
It returns true if an instance of type T
is registered, and false
otherwise.
T
is the type of the instance to be checked.
Implementation
bool isRegistered<T extends Object>() {
/// Checks if an instance of type [T] is registered.
return GetIt.instance.isRegistered<T>();
}