FCalendarManagedControl<T> constructor
const
FCalendarManagedControl<T> ({
- FCalendarController<
T> ? controller, - T? initial,
- Predicate<
DateTime> ? selectable, - bool truncateAndStripTimezone = true,
- 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._();