getObjHelper<T extends Obj> method

Future<T?> getObjHelper<T extends Obj>(
  1. ObjRef instance,
  2. Disposable? isAlive, {
  3. int? offset,
  4. int? count,
})

Implementation

Future<T?> getObjHelper<T extends Obj>(
  ObjRef instance,
  Disposable? isAlive, {
  int? offset,
  int? count,
}) {
  return addRequest<T>(isAlive, () async {
    final T value = await service.getObject(
      _isolateRef!.id!,
      instance.id!,
      offset: offset,
      count: count,
    ) as T;
    return value;
  });
}