Created
January 17, 2022 20:03
-
-
Save MCarlomagno/c1884ebecdc879a9c6fe2b2b500cd96b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:universal_html/html.dart' as html; | |
... | |
class WebDownloadService implements DownloadService { | |
@override | |
Future<void> download({required String url}) async { | |
html.window.open(url, "_blank"); | |
} | |
} | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment