toIso8601String method
Converts this Date to an ISO 8601 DateTime string. The output will always represent UTC, and include the time component (00:00:00). This is because the Date type is a wrapper around a DateTime, and the DateTime type includes the time component.
Implementation
String toIso8601String() => _dateTime.toIso8601String();