getServiceSingletonWithParamsOrNull<T extends Service<P> , P extends Object?> method
FutureOr<T> ?
getServiceSingletonWithParamsOrNull<T extends Service<P> , P extends Object?>({})
inherited
Implementation
FutureOr<T>? getServiceSingletonWithParamsOrNull<T extends Service<P>,
P extends Object?>({
required P params,
Entity? groupEntity,
bool traverse = true,
}) {
final instance = getSingletonOrNull<T>();
return instance?.thenOr(
(e) => e.initialized ? e : consec(e.init(params), (_) => e),
);
}