toUtc method Null safety

DateTime? toUtc()

Returns this DateTime value in the UTC time zone.

Returns null if this is null

Implementation

DateTime? toUtc() => _value?.toUtc();