FileAsset constructor
FileAsset(
- FileSystemEntity file, {
- MediaType? knownMediaType,
- 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});