Last active
January 17, 2022 20:00
-
-
Save MCarlomagno/82721cfca656d5dbcf5702ca956674d9 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
abstract class DownloadService { | |
Future<void> download({required String url}); | |
} | |
class WebDownloadService implements DownloadService { | |
@override | |
Future<void> download({required String url}) { | |
throw UnimplementedError(); | |
} | |
} | |
class MobileDownloadService implements DownloadService { | |
@override | |
Future<void> download({required String url}) { | |
throw UnimplementedError(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment