ClientStorageAPI constructor

ClientStorageAPI({
  1. Future getAsync(
    1. String
    )?,
  2. Future<void> setAsync(
    1. String, [
    2. dynamic
    ])?,
  3. Future<void> deleteAsync(
    1. String
    )?,
  4. Future<List<String>> keysAsync()?,
})

Implementation

factory ClientStorageAPI({
  _i2.Future<_i2.dynamic> Function(_i2.String)? getAsync,
  _i2.Future<void> Function(
    _i2.String, [
    _i2.dynamic,
  ])? setAsync,
  _i2.Future<void> Function(_i2.String)? deleteAsync,
  _i2.Future<_i2.List<_i2.String>> Function()? keysAsync,
}) =>
    ClientStorageAPI._(
      getAsync: getAsync == null ? null : _i5.allowInterop(getAsync),
      setAsync: setAsync == null ? null : _i5.allowInterop(setAsync),
      deleteAsync: deleteAsync == null ? null : _i5.allowInterop(deleteAsync),
      keysAsync: keysAsync == null ? null : _i5.allowInterop(keysAsync),
    );