toString method

  1. @override
String toString()
override

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 'OMM{ccsdsOmmVers: ${ccsdsOmmVers}, creationDate: ${creationDate}, ORIGINATOR: ${ORIGINATOR}, objectName: ${objectName}, objectId: ${objectId}, centerName: ${centerName}, referenceFrame: ${referenceFrame}, referenceFrameEpoch: ${referenceFrameEpoch}, timeSystem: ${timeSystem}, meanElementTheory: ${meanElementTheory}, COMMENT: ${COMMENT}, EPOCH: ${EPOCH}, semiMajorAxis: ${semiMajorAxis}, meanMotion: ${meanMotion}, ECCENTRICITY: ${ECCENTRICITY}, INCLINATION: ${INCLINATION}, raOfAscNode: ${raOfAscNode}, argOfPericenter: ${argOfPericenter}, meanAnomaly: ${meanAnomaly}, GM: ${GM}, MASS: ${MASS}, solarRadArea: ${solarRadArea}, solarRadCoeff: ${solarRadCoeff}, dragArea: ${dragArea}, dragCoeff: ${dragCoeff}, ephemerisType: ${ephemerisType}, classificationType: ${classificationType}, noradCatId: ${noradCatId}, elementSetNo: ${elementSetNo}, revAtEpoch: ${revAtEpoch}, BSTAR: ${BSTAR}, meanMotionDot: ${meanMotionDot}, meanMotionDdot: ${meanMotionDdot}, covReferenceFrame: ${covReferenceFrame}, COVARIANCE: ${COVARIANCE}, userDefinedBip0044Type: ${userDefinedBip0044Type}, userDefinedObjectDesignator: ${userDefinedObjectDesignator}, userDefinedEarthModel: ${userDefinedEarthModel}, userDefinedEpochTimestamp: ${userDefinedEpochTimestamp}, userDefinedMicroseconds: ${userDefinedMicroseconds}, CLASSIFICATION: ${CLASSIFICATION}, messageId: ${messageId}, userDefinedParameters: ${userDefinedParameters}, PROVENANCE: ${PROVENANCE}, covRealism: ${covRealism}, BTERM: ${BTERM}, AGOM: ${AGOM}}';
}