toString abstract method
Returns an offset ID. The ID is a minor variation of an ISO-8601 formatted offset string.
There are three formats:
Z
- for UTC (ISO-8601)+hh:mm
/-hh:mm
- if the _seconds are zero (ISO-8601)+hh:mm:ss
/-hh:mm:ss
- if the _seconds are non-zero (not ISO-8601)
print(Offset()); // 'Z'
print(Offset(1, 2)); // '+01:02'
print(Offset(1, 2, 3)); // '+01:02:03'
Implementation
@override
@mustBeOverridden
@useResult String toString();