toIsoString method
Returns Iso8601 string with timezone.
Implementation
String toIsoString() {
if (timeZoneOffset.isNegative)
return (toIso8601String() +
"-${timeZoneOffset.inHours.toString().padLeft(2, '0')}:${(timeZoneOffset.inMinutes - (timeZoneOffset.inHours * 60)).toString().padLeft(2, '0')}");
else
return (toIso8601String() +
"+${timeZoneOffset.inHours.toString().padLeft(2, '0')}:${(timeZoneOffset.inMinutes - (timeZoneOffset.inHours * 60)).toString().padLeft(2, '0')}");
}