WeekIndicator.forDate constructor

WeekIndicator.forDate(
  1. DateTime date, {
  2. Key? key,
  3. bool alwaysUseNarrowestVariant = false,
  4. VoidCallback? onTap,
  5. WeekIndicatorStyle? style,
})

Implementation

WeekIndicator.forDate(
  DateTime date, {
  super.key,
  this.alwaysUseNarrowestVariant = false,
  this.onTap,
  this.style,
})  : assert(date.debugCheckIsValidTimetableDate()),
      week = date.week;