FileInfo class

Contains information about a user selected file.

Constructors

FileInfo({required String identifier, required bool persistable, required String uri, String? fileName})

Properties

fileName String?
If available, contains the file name of the original file. (ie. most of the time the last path segment). Especially useful with android content providers which typically do not contain an actual file name in the content uri.
final
hashCode int
The hash code for this object.
no setterinherited
identifier String
Identifier which can be used for reading at a later time, or used for writing back data. See persistable for details on the valid lifetime of the identifier.
final
persistable bool
Indicates whether identifier is persistable. When true, it is safe to retain this identifier for access at any later time.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uri String
Platform dependent URI.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toJsonString() String
Serializes this data into a json string for easy serialization. Can be read back using fromJsonString.
toString() String
A string representation of this object.
override

Operators

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

Static Methods

fromJson(Map<String, dynamic> json) FileInfo
fromJsonString(String jsonString) FileInfo