FileAsset constructor

FileAsset(
  1. FileSystemEntity file, {
  2. MediaType? knownMediaType,
  3. String? mediaTypeHint,
})

Creates a FileAsset from a File and an optional media type, when known or an optional media type hint. Providing a media type hint will improve performances when sniffing the media type.

Implementation

FileAsset(this.file, {this.knownMediaType, this.mediaTypeHint});