getServiceOrNull<T> method

Future<T?> getServiceOrNull<T>([
  1. Object? tokenOrType
])

Gets a service of type T, or returns null if it cannot be resolved.

Implementation

Future<T?> getServiceOrNull<T>([Object? tokenOrType]) => _resolver.getServiceOrNull<T>(tokenOrType);