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 'STR{ID: ${ID}, csId: ${csId}, gncCatId: ${gncCatId}, gaiaDr3SourceId: ${gaiaDr3SourceId}, hipCatId: ${hipCatId}, catVersion: ${catVersion}, astrometryOrigin: ${astrometryOrigin}, starEpoch: ${starEpoch}, RA: ${RA}, raUnc: ${raUnc}, DEC: ${DEC}, decUnc: ${decUnc}, posUncFlag: ${posUncFlag}, PARALLAX: ${PARALLAX}, parallaxUnc: ${parallaxUnc}, PMRA: ${PMRA}, pmraUnc: ${pmraUnc}, PMDEC: ${PMDEC}, pmdecUnc: ${pmdecUnc}, pmUncFlag: ${pmUncFlag}, GMAG: ${GMAG}, gmagUnc: ${gmagUnc}, BPMAG: ${BPMAG}, bpmagUnc: ${bpmagUnc}, RPMAG: ${RPMAG}, rpmagUnc: ${rpmagUnc}, JMAG: ${JMAG}, jmagUnc: ${jmagUnc}, KMAG: ${KMAG}, kmagUnc: ${kmagUnc}, HMAG: ${HMAG}, hmagUnc: ${hmagUnc}, varFlag: ${varFlag}, multFlag: ${multFlag}, neighborId: ${neighborId}, neighborFlag: ${neighborFlag}, neighborDistance: ${neighborDistance}, shiftFlag: ${shiftFlag}, SHIFT: ${SHIFT}, TEFF: ${TEFF}, teffUnc: ${teffUnc}, LOGG: ${LOGG}, loggUnc: ${loggUnc}, METALLICITY: ${METALLICITY}, extinctionA0: ${extinctionA0}, radialVelocity: ${radialVelocity}, radialVelocityUnc: ${radialVelocityUnc}, spectralType: ${spectralType}, properName: ${properName}, bayerFlamsteed: ${bayerFlamsteed}, CONSTELLATION: ${CONSTELLATION}, hrCatId: ${hrCatId}, hdCatId: ${hdCatId}, DESIGNATIONS: ${DESIGNATIONS}, variabilityClass: ${variabilityClass}, variabilityPeriod: ${variabilityPeriod}, variabilityAmplitude: ${variabilityAmplitude}, variabilityEpoch: ${variabilityEpoch}, PHOTOMETRY: ${PHOTOMETRY}, distancePc: ${distancePc}, distanceLoPc: ${distanceLoPc}, distanceHiPc: ${distanceHiPc}, distanceMethod: ${distanceMethod}, distanceRef: ${distanceRef}}';
}