DexcomEGVData class
DexcomEGVData is a class implementing the data model of the user EGV data.
- Implemented types
Constructors
- DexcomEGVData({required EGVValueUnit egvValueUnit, required EGVRateUnit egvRateUnit, required DateTime systemTime, required DateTime displayTime, double? realtimeValue, double? smoothedValue, double? value, required EGVStatus egvStatus, Trend? trend, double? trendRate})
- Default DexcomEGVData constructor.
-
DexcomEGVData.fromJsonWithUnits({required String unit, required String rateUnit, required Map<
String, dynamic> json}) -
Generates a DexcomEGVData obtained from a json.
factory
Properties
- displayTime → DateTime
-
The time displayed on the receiving device when egv was recorded.
final
- egvRateUnit → EGVRateUnit
-
The unit of measurement of the trendRate field.
final
- egvStatus → EGVStatus
-
Explanation of EGV record; used when the value field is outside the measuring range.
final
- egvValueUnit → EGVValueUnit
-
The unit of measurement of the value field.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- realtimeValue → double?
-
The egv presented on receiving device in realtime
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- smoothedValue → double?
-
Egv presented retrospectively on receiving device after smoothing; G6 devices only.
final
- systemTime → DateTime
-
The time according to the system clock at which egv was recorded; nominally UTC.
final
- trend → Trend?
-
General trend of EGV value movement; corresponds to trendRate field.
final
- trendRate → double?
-
Rate at which glucose value is moving up or down
final
- value → double?
-
The egv value.
The G6 generation of sensors and transmitters introduced the concept of retrospective data smoothing to estimated glucose values.
This smoothing incorporates three consecutive EGVs to produce a clearer, more readable trace for the user.
Because three consecutive EGVs are not always available—for example, at the beginning or end of a sensor session—some EGVs cannot be smoothed.
In these cases, the realtimeValue will be populated with a number, but the smoothedValue will be null.
The rules for the value field are:
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson<
T extends DexcomData> () → Map< String, dynamic> -
Converts the value to a json.
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited