overrideQuotaForOrigin method

Future<void> overrideQuotaForOrigin(
  1. String origin, {
  2. num? quotaSize,
})

Override quota for the specified origin origin Security origin. quotaSize The quota size (in bytes) to override the original quota with. If this is called multiple times, the overridden quota will be equal to the quotaSize provided in the final call. If this is called without specifying a quotaSize, the quota will be reset to the default value for the specified origin. If this is called multiple times with different origins, the override will be maintained for each origin until it is disabled (called without a quotaSize).

Implementation

Future<void> overrideQuotaForOrigin(String origin, {num? quotaSize}) async {
  await _client.send('Storage.overrideQuotaForOrigin', {
    'origin': origin,
    if (quotaSize != null) 'quotaSize': quotaSize,
  });
}