DVFileAssociation class
One file type the application opens.
Constructors
-
DVFileAssociation({required String mimeType, List<
String> extensions = const <String>[], String? description, String? icon, DVFileAssociationRole role = DVFileAssociationRole.editor}) -
const
Properties
- description → String?
-
What a file manager calls the type.
final
-
extensions
→ List<
String> -
The extensions that are this type, without their dots. Empty for a type
the platform already knows (
image/png); a type the application introduces needs at least one, because files are recognised by them.final - hashCode → int
-
The hash code for this object.
no setteroverride
- icon → String?
-
An icon for files of this type, as a path in the project.
final
- isNew → bool
-
A type this application introduces, rather than one the platform
already has a name for.
no setter
- mimeType → String
-
The type,
application/x-shop-orderorimage/png.final - role → DVFileAssociationRole
-
final
- 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
-
toPubspec(
) → Map< String, Object?> - The pubspec object, with defaults left out so a round trip is exact.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
fromPubspec(
Object? raw, {String key = 'dartvel.fileAssociations'}) → DVFileAssociationsParse -
Every association in
raw, the value offileAssociations, and what is wrong with the ones that could not be read. Never throws: a build reports these with the rest of its findings, and the entries that are right still register.