instanceFor static method
Returns the FirebaseStorage instance, initialized with a custom
FirebaseApp if app
is specified and a custom Google Cloud Storage
bucket if bucket
is specified. Otherwise the instance will be
initialized with the default FirebaseApp.
The FirebaseStorage instance is a singleton for fixed app
and
bucket
.
The bucket
argument is the gs:// url to the custom Firebase
Storage Bucket.
The app
argument is the custom FirebaseApp.
Implementation
static FirebaseStorage instanceFor({FirebaseApp? app, String? bucket}) =>
FirebaseImplementation.installation
.createStorage(app ?? Firebase.app(), storageBucket: bucket);