toUtcIso property

String? get toUtcIso

Converts this DateTime to UTC and returns an ISO 8601 string representation.

Returns null if this DateTime is null. Example: "2024-01-15T10:30:00.000Z"

Implementation

String? get toUtcIso => this?.toUtc().toIso8601String();