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 'CarStatusData{m_tractionControl: $m_tractionControl, m_antiLockBrakes: $m_antiLockBrakes, m_fuelMix: $m_fuelMix, m_frontBrakeBias: $m_frontBrakeBias, m_pitLimiterStatus: $m_pitLimiterStatus, m_fuelInTank: $m_fuelInTank, m_fuelCapacity: $m_fuelCapacity, m_fuelRemainingLaps: $m_fuelRemainingLaps, m_maxRPM: $m_maxRPM, m_idleRPM: $m_idleRPM, m_maxGears: $m_maxGears, m_drsAllowed: $m_drsAllowed, m_drsActivationDistance: $m_drsActivationDistance, m_actualTyreCompound: $m_actualTyreCompound, m_visualTyreCompound: $m_visualTyreCompound, m_tyresAgeLaps: $m_tyresAgeLaps, m_vehicleFiaFlags: $m_vehicleFiaFlags, m_ersStoreEnergy: $m_ersStoreEnergy, m_ersDeployMode: $m_ersDeployMode, m_ersHarvestedThisLapMGUK: $m_ersHarvestedThisLapMGUK, m_ersHarvestedThisLapMGUH: $m_ersHarvestedThisLapMGUH, m_ersDeployedThisLap: $m_ersDeployedThisLap, m_networkPaused: $m_networkPaused}';
}