toString method
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() => 'ProductImage('
'${field == null ? '' : 'field=${field!.offTag}'}'
'${size == null ? '' : ',size=${size!.offTag}'}'
'${language == null ? '' : ',language=${language.code}'}'
'${angle == null ? '' : ',angle=${angle!.degreesClockwise}'}'
'${url == null ? '' : ',url=$url'}'
'${uploaded == null ? '' : ',uploaded=$uploaded'}'
'${imgid == null ? '' : ',imgid=$imgid'}'
'${rev == null ? '' : ',rev=$rev'}'
'${coordinatesImageSize == null ? '' : ',coordinatesImageSize=$coordinatesImageSize'}'
'${x1 == null ? '' : ',x1=$x1'}'
'${y1 == null ? '' : ',y1=$y1'}'
'${x2 == null ? '' : ',x2=$x2'}'
'${y2 == null ? '' : ',y2=$y2'}'
'${width == null ? '' : ',width=$width'}'
'${height == null ? '' : ',height=$height'}'
')';