toString method

  1. @override
String toString([
  1. String? patternText,
  2. Culture? culture
])
override

Formats the value of the current instance using the specified pattern.

A String containing the value of the current instance in the specified format.

  • patternText: The String specifying the pattern to use, or null to use the default format pattern ('T').
  • culture: The Culture to use when formatting the value, or null to use the current isolate's culture.

Implementation

@override String toString([String? patternText, Culture? culture]) =>
    LocalTimePatterns.format(this, patternText, culture);