toString method

  1. @override
  2. @useResult
String toString()
override

Returns a ISO formatted string representation.

When possible, trailing zero seconds, milliseconds and microseconds are truncated.

OffsetTime(Offset(-8), 12, 30, 1, 2, 3); // 12:30:01.002003-08:00

LocalDateTime(Offset(4), 12, 30); // 12:30+04:00

Implementation

@override
@useResult String toString() => _string ??= '${_native.toTimeString()}$offset';