YearMonth constructor

const YearMonth(
  1. int year,
  2. int month
)

Create new YearMonth's year and month with valid value

Implementation

const YearMonth(this.year, this.month) : assert(month >= 1 && month <= 12);