FormMonthFieldPicker constructor

const FormMonthFieldPicker({
  1. DateTime? defaultDateTime,
  2. String monthSuffix = "",
  3. String yearSuffix = "",
  4. String yearFormat = "yyyy",
  5. Color? backgroundColor,
  6. int? day,
  7. bool? lastDayOfMonth,
  8. Color? color,
  9. DateTime? begin,
  10. DateTime? end,
  11. String confirmText = "Confirm",
  12. String cancelText = "Cancel",
})

Class that defines a picker style for selecting dates.

日付を選択するためのピッカースタイルを定義するクラス。

Implementation

const FormMonthFieldPicker({
  this.defaultDateTime,
  this.monthSuffix = "",
  this.yearSuffix = "",
  this.yearFormat = "yyyy",
  this.backgroundColor,
  this.day,
  this.lastDayOfMonth,
  this.color,
  this.begin,
  this.end,
  this.confirmText = "Confirm",
  this.cancelText = "Cancel",
})  : assert(
        lastDayOfMonth == null || day == null,
        "You can't set both lastDayOfMonth and day.",
      ),
      assert(
        day == null || day > 0 && day <= 31,
        "day must be 1-31.",
      );