Skip to content

Instantly share code, notes, and snippets.

@MCarlomagno
Last active January 17, 2022 20:00
Show Gist options
  • Save MCarlomagno/82721cfca656d5dbcf5702ca956674d9 to your computer and use it in GitHub Desktop.
Save MCarlomagno/82721cfca656d5dbcf5702ca956674d9 to your computer and use it in GitHub Desktop.
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