toMap method
Converts this OffsetPoint to a map of data, typically used for serialization.
Implementation
Map<String, dynamic> toMap() => {
'x': dx,
'y': dy,
't': timestamp,
if (pressure != null) 'p': pressure,
};
Converts this OffsetPoint to a map of data, typically used for serialization.
Map<String, dynamic> toMap() => {
'x': dx,
'y': dy,
't': timestamp,
if (pressure != null) 'p': pressure,
};