DocumentFormat enum
A document type universal_document_viewer can read, and how files map to it.
Values
- pdf → const DocumentFormat
-
PDF (
.pdf). - word → const DocumentFormat
-
Word document (
.docx). - excel → const DocumentFormat
-
Excel workbook (
.xlsx). - powerpoint → const DocumentFormat
-
PowerPoint presentation (
.pptx). - text → const DocumentFormat
-
Plain text or Markdown (
.txt,.md,.markdown). - csv → const DocumentFormat
-
Comma-separated values (
.csv).
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - 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 Properties
-
supportedExtensions
→ List<
String> -
Every extension the kit reads, without the dot.
no setter
Static Methods
-
extensionForMimeType(
String mimeType) → String? - The extension for a MIME type another app reported (e.g. a shared file with no extension of its own); null if unsupported.
-
fromExtension(
String extension) → DocumentFormat? -
extensionwith or without its dot, any case; null if unsupported. -
fromPath(
String path) → DocumentFormat? - From a file name or path's extension; null if unsupported.
Constants
-
values
→ const List<
DocumentFormat> - A constant List of the values in this enum, in order of their declaration.