getMetadata method

Future<FullMetadata> getMetadata({
  1. required String path,
})

Returns the FullMetadata for the file at path.

Useful for reading content type, size, creation time, custom metadata, etc.

Throws FirebaseException if the file does not exist.

Implementation

Future<FullMetadata> getMetadata({required String path}) async =>
    await _ref(path).getMetadata();