FCalendarManagedControl<T> constructor

const FCalendarManagedControl<T>({
  1. FCalendarController<T>? controller,
  2. T? initial,
  3. Predicate<DateTime>? selectable,
  4. bool truncateAndStripTimezone = true,
  5. ValueChanged<T>? onChange,
})

Creates a FCalendarControl.

Implementation

const FCalendarManagedControl({
  this.controller,
  this.initial,
  this.selectable,
  this.truncateAndStripTimezone = true,
  this.onChange,
}) : assert(
       controller == null || initial == null,
       'Cannot provide both controller and initial. Pass initial value to the controller instead.',
     ),
     assert(
       controller == null || selectable == null,
       'Cannot provide both controller and selectable. Pass selectable to the controller instead.',
     ),
     assert(
       controller == null || truncateAndStripTimezone,
       'Cannot provide both controller and truncateAndStripTimezone. Pass truncateAndStripTimezone to the controller instead.',
     ),
     super._();