toString method

  1. @override
String toString()
override

Returns a String that represents this instance.

The value of the current instance, in the form MM-dd.

Implementation

@override String toString() {
  // AnnualDatePattern.BclSupport.Format(this, null, Culture.currentCulture);
  return '${month.toString().padLeft(2, '0')}-${day.toString().padLeft(2, '0')}';
}