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() {
StringBuffer sb = StringBuffer();
sb.write('touchVersion: $touchVersion, ');
sb.write('softwareVersion: $softwareVersion, ');
sb.write('radioVersion: $radioVersion, ');
sb.write('clingId: $clingId, ');
sb.write('modelNumber: $modelNumber, ');
sb.write('batteryLevel: $batteryLevel, ');
sb.write(
'memoryAvailable: 0x${memoryAvailable.toRadixString(16)}($memoryAvailable), ');
sb.write(
'fileAvailable: 0x${fileAvailable.toRadixString(16)}($fileAvailable), ');
sb.write('bondUserID: 0x${bondUserID.toRadixString(16)}($bondUserID), ');
sb.write('bondEpoch: 0x${bondEpoch.toRadixString(16)}($bondEpoch), ');
sb.write('resetCount: $resetCount, ');
sb.write('gps_blk_count: $gps_blk_count, ');
sb.write('minuteStreamingFile: $minuteStreamingFile, ');
sb.write(
'clkfaceIndex0: 0x${clkfaceIndex0.toRadixString(16)}($clkfaceIndex0), ');
sb.write(
'clkfaceIndex1: 0x${clkfaceIndex1.toRadixString(16)}($clkfaceIndex1), ');
sb.write(
'clkfaceIndex2: 0x${clkfaceIndex2.toRadixString(16)}($clkfaceIndex2), ');
sb.write(
'clkfaceIndex3: 0x${clkfaceIndex3.toRadixString(16)}($clkfaceIndex3), ');
sb.write('flashtype: $flashtype, ');
sb.write(
'validMac: 0x${validMac.toRadixString(16)}($validMac), hasValidMac: $hasValidMac, ');
sb.write('mac: $mac');
return sb.toString();
}