DateTimeType constructor

const DateTimeType(
  1. TimeUnit unit, {
  2. String? timeZone,
})

Creates a datetime type with unit resolution and optional timeZone.

Implementation

const DateTimeType(this.unit, {this.timeZone});