utc property

bool get utc

Implementation

bool get utc => _utc;
  1. @Input()
set utc (bool value)

Whether the widget returns dateTime in the UTC time zone.

In default, the widget returns time in the local time zone.

Implementation

@Input()
set utc(bool value) {
  _utc = value;
  dateTime = _utc ? _dateTime?.toUtc() : _dateTime?.toLocal();
}