timeZoneOffset property Null safety

Duration timeZoneOffset
override

The time zone offset, which is the difference between time at location and UTC.

The offset is positive for time zones east of UTC.

Note, that JavaScript, Python and C return the difference between UTC and local time. Java, C# and Ruby return the difference between local time and UTC.

Implementation

@override
Duration get timeZoneOffset => _timeZoneOffset(timeZone);