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 'CarSetupData{m_frontWing: $m_frontWing, m_rearWing: $m_rearWing, m_onThrottle: $m_onThrottle, m_offThrottle: $m_offThrottle, m_frontCamber: $m_frontCamber, m_rearCamber: $m_rearCamber, m_frontToe: $m_frontToe, m_rearToe: $m_rearToe, m_frontSuspension: $m_frontSuspension, m_rearSuspension: $m_rearSuspension, m_frontAntiRollBar: $m_frontAntiRollBar, m_rearAntiRollBar: $m_rearAntiRollBar, m_frontSuspensionHeight: $m_frontSuspensionHeight, m_rearSuspensionHeight: $m_rearSuspensionHeight, m_brakePressure: $m_brakePressure, m_brakeBias: $m_brakeBias, m_rearLeftTyrePressure: $m_rearLeftTyrePressure, m_rearRightTyrePressure: $m_rearRightTyrePressure, m_frontLeftTyrePressure: $m_frontLeftTyrePressure, m_frontRightTyrePressure: $m_frontRightTyrePressure, m_ballast: $m_ballast, m_fuelLoad: $m_fuelLoad}';
}