LapData class
Constructors
-
LapData({required int m_lastLapTimeInMs, required int m_currentLapTimeInMs, required int m_sector1TimeInMs, required int m_sector2TimeInMs, required double m_lapDistance, required double m_totalDistance, required double m_safetyCarDelta, required int m_carPosition, required int m_currentLapNum, required int m_pitStatus, required int m_numPitStops, required int m_sector, required int m_currentLapInvalid, required int m_penalties, required int m_warnings, required int m_numUnservedDriveThroughPens, required int m_numUnservedStopGoPens, required int m_gridPosition, required int m_driverStatus, required int m_resultStatus, required int m_pitLaneTimerActive, required int m_pitLaneTimeInLaneInMs, required int m_pitStopTimerInMs, required int m_pitStopShouldServePen})
-
const
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
m_carPosition
→ int
-
Car race position
final
-
m_currentLapInvalid
→ int
-
Current lap invalid - 0 = valid, 1 = invalid
final
-
m_currentLapNum
→ int
-
Current lap number
final
-
m_currentLapTimeInMs
→ int
-
Current time around the lap in milliseconds
final
-
m_driverStatus
→ int
-
Status of driver - 0 = in garage, 1 = flying lap
2 = in lap, 3 = out lap, 4 = on track
final
-
m_gridPosition
→ int
-
Grid position the vehicle started the race in
final
-
m_lapDistance
→ double
-
Distance vehicle is around current lap in metres – could be negative if line hasn’t been crossed yet
final
-
m_lastLapTimeInMs
→ int
-
Last lap time in milliseconds
final
-
m_numPitStops
→ int
-
Number of pit stops taken in this race
final
-
m_numUnservedDriveThroughPens
→ int
-
Num drive through pens left to serve
final
-
m_numUnservedStopGoPens
→ int
-
Num stop go pens left to serve
final
-
m_penalties
→ int
-
Accumulated time penalties in seconds to be added
final
-
m_pitLaneTimeInLaneInMs
→ int
-
If active, the current time spent in the pit lane in ms
final
-
m_pitLaneTimerActive
→ int
-
Pit lane timing, 0 = inactive, 1 = active
final
-
m_pitStatus
→ int
-
0 = none, 1 = pitting, 2 = in pit area
final
-
m_pitStopShouldServePen
→ int
-
Whether the car should serve a penalty at this stop
final
-
m_pitStopTimerInMs
→ int
-
Time of the actual pit stop in ms
final
-
m_resultStatus
→ int
-
Result status - 0 = invalid, 1 = inactive, 2 = active
3 = finished, 4 = didnotfinish, 5 = disqualified
6 = not classified, 7 = retired
final
-
m_safetyCarDelta
→ double
-
Delta in seconds for safety car
final
-
m_sector
→ int
-
0 = sector1, 1 = sector2, 2 = sector3
final
-
m_sector1TimeInMs
→ int
-
Sector 1 time in milliseconds
final
-
m_sector2TimeInMs
→ int
-
Sector 2 time in milliseconds
final
-
m_totalDistance
→ double
-
Total distance travelled in session in metres – could be negative if line hasn’t been crossed yet
final
-
m_warnings
→ int
-
Accumulated number of warnings issued
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
override