DateTimePickerUnit constructor

const DateTimePickerUnit({
  1. String? year,
  2. String? month,
  3. String? day,
  4. String? hour,
  5. String? minute,
  6. String? second,
})

设置 null 不显示 year == null 不显示年

Implementation

const DateTimePickerUnit(
    {this.year, this.month, this.day, this.hour, this.minute, this.second});