FLineCalendarScrollManagedControl constructor

const FLineCalendarScrollManagedControl({
  1. FLineCalendarScrollController? controller,
  2. DateTime? start,
  3. DateTime? end,
  4. DateTime? today,
  5. DateTime? initialDate,
  6. AlignmentDirectional? initialAlignment,
  7. ValueChanged<double>? onChange,
})

Creates a FLineCalendarScrollManagedControl.

Contract

Throws AssertionError if controller is provided alongside any other parameter (except onChange). Pass the other parameters to the controller instead.

Implementation

const FLineCalendarScrollManagedControl({
  this.controller,
  this.start,
  this.end,
  this.today,
  this.initialDate,
  this.initialAlignment,
  this.onChange,
}) : assert(
       controller == null ||
           (start == null && end == null && today == null && initialDate == null && initialAlignment == null),
       'Cannot provide both controller and other parameters. Pass these parameters to the controller instead.',
     ),
     super._();