toString method
A string representation of this object.
Some classes have a default textual representation,
often paired with a static parse
function (like int.parse).
These classes will provide the textual representation as
their string representation.
Other classes have no meaningful textual representation
that a program will care about.
Such classes will typically override toString
to provide
useful information when inspecting the object,
mainly for debugging or logging.
Implementation
@override
String toString() {
return 'LapData{m_lastLapTimeInMs: $m_lastLapTimeInMs, m_currentLapTimeInMs: $m_currentLapTimeInMs, m_sector1TimeInMs: $m_sector1TimeInMs, m_sector2TimeInMs: $m_sector2TimeInMs, m_lapDistance: $m_lapDistance, m_totalDistance: $m_totalDistance, m_safetyCarDelta: $m_safetyCarDelta, m_carPosition: $m_carPosition, m_currentLapNum: $m_currentLapNum, m_pitStatus: $m_pitStatus, m_numPitStops: $m_numPitStops, m_sector: $m_sector, m_currentLapInvalid: $m_currentLapInvalid, m_penalties: $m_penalties, m_warnings: $m_warnings, m_numUnservedDriveThroughPens: $m_numUnservedDriveThroughPens, m_numUnservedStopGoPens: $m_numUnservedStopGoPens, m_gridPosition: $m_gridPosition, m_driverStatus: $m_driverStatus, m_resultStatus: $m_resultStatus, m_pitLaneTimerActive: $m_pitLaneTimerActive, m_pitLaneTimeInLaneInMs: $m_pitLaneTimeInLaneInMs, m_pitStopTimerInMs: $m_pitStopTimerInMs, m_pitStopShouldServePen: $m_pitStopShouldServePen}';
}