DataType class Null safety

Specifies the type of a Measure.

Defines a type of data which can be processed by the platform (e.g., measured / collected / uploaded). This is used by the infrastructure to determine whether the requested data can be collected on a device, how to upload it, how to process it in a secondary data stream, or how triggers can act on it.

Annotations

Constructors

DataType(String namespace, String name)
Create a DataType.
const
DataType.fromJson(Map<String, dynamic> json)
factory
DataType.fromString(String type)
factory

Properties

hashCode int
The hash code for this object. [...]
read-only, override
name String
The name of this data format. [...]
final
namespace String
The data type namespace. See NameSpace. [...]
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

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

Constants

UNKNOWN → const DataType
DataType(NameSpace.UNKNOWN, 'unknown')