DateTimePickerUnit.ym constructor

const DateTimePickerUnit.ym({
  1. String? year = 'Y',
  2. String? month = 'M',
})

Implementation

const DateTimePickerUnit.ym({
  this.year = 'Y',
  this.month = 'M',
})  : day = null,
      hour = null,
      minute = null,
      second = null;