blob: eb6979b39900fb6b199466af87c7c63fe5f20288 [file] [log] [blame]
// Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
//
// Generated from Web IDL definitions.
import 'dart:js_interop';
@JS('StorageManager')
@staticInterop
class StorageManager {}
extension StorageManagerExtension on StorageManager {
external JSPromise getDirectory();
external JSPromise persisted();
external JSPromise persist();
external JSPromise estimate();
}
@JS()
@staticInterop
@anonymous
class StorageEstimate {
external factory StorageEstimate({
int usage,
int quota,
});
}
extension StorageEstimateExtension on StorageEstimate {
external set usage(int value);
external int get usage;
external set quota(int value);
external int get quota;
}