isUtc property Null safety

bool isUtc

True if this DateTime is set to UTC time.

final dDay = DateTime.utc(1944, 6, 6);
print(dDay.isUtc); // true

final local = DateTime(1944, 6, 6);
print(local.isUtc); // false

Implementation

bool get isUtc => _value.isUtc;