toUtc method Null safety

  1. @override
TZDateTime toUtc()
override

Returns this DateTime value in the UTC time zone.

Returns this if it is already in UTC.

Implementation

@override
TZDateTime toUtc() => isUtc ? this : TZDateTime.from(_native, UTC);