WebScopedStorageXFileCreationParams.fromObjectUrl constructor

WebScopedStorageXFileCreationParams.fromObjectUrl({
  1. required String objectUrl,
  2. @visibleForTesting Object? testOverrides,
})

Constructs a WebScopedStorageXFileCreationParams with an object url.

This is a stub for the method in web_scoped_storage_cross_file.dart.

Implementation

factory WebScopedStorageXFileCreationParams.fromObjectUrl({
  // ignore: avoid_unused_constructor_parameters
  required String objectUrl,
  // The type should be a `XFileTestOverrides`. It can't be imported in this
  // stub without breaking other platforms.
  // ignore: avoid_unused_constructor_parameters
  @visibleForTesting Object? testOverrides,
}) => throw UnsupportedError(
  '`WebScopedStorageXFileCreationParams.fromObjectUrl` is only supported on web.',
);