YearsMonthWidget constructor

YearsMonthWidget({
  1. @required ValueChanged<int>? onYearChanged,
  2. @required ValueChanged<int>? onMonthChanged,
  3. int? initByYear,
  4. int? initByMonth,
  5. String suffixByYear = " 年",
  6. String suffixByMonth = " 月",
  7. int minYear = 1970,
  8. int maxYear = 2030,
  9. TextStyle style = const TextStyle(fontSize: 18.0),
})

Implementation

YearsMonthWidget({
  @required this.onYearChanged,
  @required this.onMonthChanged,
  this.initByYear,
  this.initByMonth,
  this.suffixByYear = " 年",
  this.suffixByMonth = " 月",
  this.minYear = 1970,
  this.maxYear = 2030,
  this.style = const TextStyle(fontSize: 18.0),
}) : assert(onYearChanged != null);