StringDatum class Null safety

A simple Datum that only holds a string datum object.

Inheritance
Annotations

Constructors

StringDatum(String str)
Create a StringDatum based on a simple string data item.
StringDatum.fromJson(Map<String, dynamic> json)
Create a StringDatum from a JSON map.
factory

Properties

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
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
str String
The string data for this Datum.
read / write
timestamp DateTime?
The UTC timestamp when this data was generated on the device.
read / write, inherited

Methods

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

Operators

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