getUsageForOrigin method Null safety

Future<int> getUsageForOrigin(
  1. {required String origin}
)

Gets the amount of storage currently being used by both the Application Cache and Web SQL Database APIs by the given origin. The amount is given in bytes and the origin is specified using its string representation.

Implementation

Future<int> getUsageForOrigin({required String origin}) async {
  Map<String, dynamic> args = <String, dynamic>{};
  args.putIfAbsent("origin", () => origin);
  return await _staticChannel.invokeMethod('getUsageForOrigin', args);
}