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 'TXS{ID: ${ID}, nativeId: ${nativeId}, siteName: ${siteName}, stationIdentity: ${stationIdentity}, LICENSEE: ${LICENSEE}, licenseId: ${licenseId}, SERVICE: ${SERVICE}, STATUS: ${STATUS}, countryCode: ${countryCode}, adminArea: ${adminArea}, LATITUDE: ${LATITUDE}, LONGITUDE: ${LONGITUDE}, positionAuthority: ${positionAuthority}, positionUncertaintyM: ${positionUncertaintyM}, positionDisputed: ${positionDisputed}, priorPositions: ${priorPositions}, groundElevationAmslM: ${groundElevationAmslM}, structureHeightAglM: ${structureHeightAglM}, STRUCTURE: ${STRUCTURE}, structureCount: ${structureCount}, EMISSIONS: ${EMISSIONS}, firstObserved: ${firstObserved}, lastObserved: ${lastObserved}, SOURCES: ${SOURCES}, CONSENSUS: ${CONSENSUS}}';
}