Skip to content
Prev Previous commit
Next Next commit
nit
  • Loading branch information
kevmoo committed Nov 30, 2023
commit ea9dc8499d74d141b7f7562affcddb7a5940023b
2 changes: 1 addition & 1 deletion packages/cross_file/lib/src/types/html.dart
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ class XFile extends XFileBase {
super(path) {
if (path == null) {
_browserBlob = _createBlobFromBytes(bytes, mimeType);
// ignore: unnecessary_cast
// for pkg:web v0.3.0
// ignore: unnecessary_cast
_path = URL.createObjectURL(_browserBlob! as JSObject);
} else {
_path = path;
Expand Down
2 changes: 1 addition & 1 deletion packages/cross_file/test/x_file_html_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ final Uint8List bytes = Uint8List.fromList(utf8.encode(expectedStringContents));
final html.File textFile =
html.File(<js_util.JSAny>[bytes.toJS].toJS, 'hello.txt');
final String textFileUrl =
// ignore: unnecessary_cast
// for pkg:web v0.3.0
// ignore: unnecessary_cast
html.URL.createObjectURL(textFile as js_util.JSObject);

void main() {
Expand Down