toString method

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

Returns a ISO formatted string representation.

LocalDate(2023, 5, 10).toString(); // '2023-05-10'

Implementation

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