get<T> method

Future<T?> get<T>(
  1. String key, {
  2. bool? allowConcurrency,
  3. bool? noCache,
})

Implementation

Future<T?> get<T>(
  String key, {
  bool? allowConcurrency,
  bool? noCache,
}) async {
  final obj = await _delegate.get(
    key,
    interop.DurableObjectGetOptions()
      ..allowConcurrency = allowConcurrency
      ..noCache = noCache,
  );

  return obj == null ? null : dartify(obj) as T;
}