safeGetInstance method

Future<Instance> safeGetInstance(
  1. FutureOr<InstanceRef> instanceRefFuture,
  2. Disposable? isAlive
)

Implementation

Future<Instance> safeGetInstance(
  FutureOr<InstanceRef> instanceRefFuture,
  Disposable? isAlive,
) async {
  final instanceRef = await instanceRefFuture;
  final value = await getObjHelper<Instance>(instanceRef, isAlive);
  return _verifySaneValue(value, isAlive);
}