FirebaseStorage storage = FirebaseStorage(storageBucket: '');

is deprecated, but when I use

FirebaseStorage storage = FirebaseStorage.instance();

I get this error: The expression doesn't evaluate to a function, so it can't be invoked.

1

There are 1 answers

0
Nuqo On BEST ANSWER

I just had to use instanceFor instead:

FirebaseStorage storage = FirebaseStorage.instanceFor(bucket: '');