getServiceOrNull<T> method
- Object? tokenOrType
Gets a service of type T, or returns null if it cannot be resolved.
tokenOrType: An optional token (e.g., InjectorToken) or Type.
Implementation
Future<T?> getServiceOrNull<T>([Object? tokenOrType]) => _resolver.getServiceOrNull<T>(tokenOrType);