isLocal property

bool? get isLocal

If the start and end are both in local time.

Is null if one is in local time and the other is not.

Implementation

bool? get isLocal => start.isUtc == end.isUtc ? !start.isUtc : null;