FileDatum class Null safety

A Datum object holding a link to a file.



FileDatum({required String filename, bool upload = true})
Create a new FileDatum based the file path and whether it is to be uploaded or not.
FileDatum.fromJson(Map<String, dynamic> json)
Create a FileDatum from a JSON map.


filename String
The name to the attached file.
read / write
format DataFormat
The DataFormat of this type of Datum.
@JsonKey(ignore: true), read / write, inherited-setter, override-getter
hashCode int
The hash code for this object. [...]
read-only, inherited
id String?
An identifier for this Datum, unique across all data generated.
read / write, inherited
metadata Map<String, String>?
Metadata for this file as a map of string key-value pairs.
read / write
path String?
The local path to the attached file on the phone where it is sampled. This is used by e.g. a data manager to get and manage the file on the phone.
@JsonKey(ignore: true), read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
timestamp DateTime?
The UTC timestamp when this data was generated on the device.
read / write, inherited
upload bool
Should this file be uploaded together with the Datum description. Default is true.
read / write


equivalentTo(ConditionalEvent? event) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toJson() Map<String, dynamic>
Return a JSON encoding of this datum.
toString() String
A string representation of this object. [...]


operator ==(Object other) bool
The equality operator. [...]