status property
The status of the availability of the next speed limit
Implementation
NextSpeedLimitStatus get status {
if (speed == 0 && distance == 0) {
return NextSpeedLimitStatus.noSpeedChange;
}
if (speed == 0 && distance != 0) {
return NextSpeedLimitStatus.noData;
}
return NextSpeedLimitStatus.withSpeedChange;
}