UDownloadFileNames class abstract final

File-name helpers: Content-Disposition parsing, sanitising, extensions and categories.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

categoryOf(String name) → UDownloadCategory
Category of an extension.
extensionForMime(String? mimeType) → String?
Extension for a MIME type.
extensionOf(String name) → String
Extension of a file name or URL.
fromContentDisposition(String? header) → String?
RFC 6266: prefers filename*=UTF-8''… over filename="…".
mimeForExtension(String extension) → String?
MIME type for an extension.
resolve({String? requested, String? contentDisposition, Uri? uri, String? mimeType}) → String
Picks a safe file name from URL, headers and request.
sanitize(String name) → String
Makes name safe on every file system: no separators or reserved characters, no Windows device names, no leading dots, and at most 180 characters.