Skip to content

Commit

Permalink
chore: fix analyzer error
Browse files Browse the repository at this point in the history
  • Loading branch information
pr-Mais committed Nov 22, 2021
1 parent 47d5b5a commit 38a60b5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Expand Up @@ -67,8 +67,9 @@ void testsMain() {
);
await remoteConfig.setConfigSettings(
RemoteConfigSettings(
fetchTimeout: const Duration(seconds: 10),
minimumFetchInterval: Duration.zero),
fetchTimeout: const Duration(seconds: 10),
minimumFetchInterval: Duration.zero,
),
);
expect(remoteConfig.settings.fetchTimeout, const Duration(seconds: 10));
expect(remoteConfig.settings.minimumFetchInterval, Duration.zero);
Expand Down
Expand Up @@ -151,7 +151,7 @@ class _TaskManager extends State<TaskManager> {
Future<void> _downloadBytes(firebase_storage.Reference ref) async {
final bytes = await ref.getData();
// Download...
await saveAsBytes(bytes, 'some-image.jpg');
await saveAsBytes(bytes!, 'some-image.jpg');
}

Future<void> _downloadLink(firebase_storage.Reference ref) async {
Expand Down
@@ -1,6 +1,6 @@
import 'dart:typed_data';

/// Present a dialog so the user can save as... a bunch of bytes.
Future<void> saveAsBytes(Uint8List? bytes, String suggestedName) async {
Future<void> saveAsBytes(Uint8List bytes, String suggestedName) async {
return;
}

0 comments on commit 38a60b5

Please sign in to comment.