toString method

  1. @override
String toString()
override

Returns a ISO formatted string representation.

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

LocalDateTime(12, 30, 1, 2, 3); // 12:30:01.002003

LocalDateTime(12, 30); // 12:30

Implementation

@override
String toString() => _string ??= _native.toTimeString();