mockableCreator property

  1. @override
Object? Function() get mockableCreator
override

Implementation

@override
Object? Function() get mockableCreator {
  if (!isInitialized && dependsOn != null) {
    _subscribeForCombinedSnap();
    _setCombinedSnap(kDebugMode ? StackTrace.current : null);
  }
  if (cachedCreatorMocks.last != null) {
    if (creator is Future<T> Function() || creator is Stream<T> Function()) {
      isWaitingToInitialize = true;
    }
    return cachedCreatorMocks.last!;
  }
  return creatorUpdatable;
}