ESenseSensorDatum class
Holds information about an eSense button pressed event.
This datum is a 1:1 mapping of the eSense SensorEvent event.
- Inheritance
-
- Object
- Data
- Datum
- ESenseDatum
- ESenseSensorDatum
- Annotations
-
- @JsonSerializable(fieldRename: FieldRename.snake, includeIfNull: false)
Constructors
-
ESenseSensorDatum.new({required String deviceName, DateTime? timestamp, int? packetIndex, List<
int> ? accel, List<int> ? gyro}) -
ESenseSensorDatum.fromJson(Map<
String, dynamic> json) -
factory
- ESenseSensorDatum.fromSensorEvent({required String deviceName, required SensorEvent event})
-
factory
Properties
-
accel
↔ List<
int> ? -
3-elements array with X, Y and Z axis for accelerometer
getter/setter pair
- deviceName ↔ String
-
The name of eSense device that generated this datum.
getter/setter pairinherited
- format ↔ DataFormat
-
The
DataFormat
of this type ofDatum
.getter/setter pairinherited-setteroverride-getter -
gyro
↔ List<
int> ? -
3-elements array with X, Y and Z axis for gyroscope
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ String?
-
An identifier for this
Datum
, unique across all data generated. If this datum is part of aMultiDatum
, then this id is null.getter/setter pairinherited - packetIndex ↔ int?
-
Sequential number of sensor packets.
The eSense device don't have a clock, so this index reflect the order of reading.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timestamp ↔ DateTime
-
The UTC timestamp when this data was generated on the device.
getter/setter pairinherited
Methods
-
equivalentTo(
ConditionalEvent? event) → bool -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent 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