CalendarInteraction class
The CalendarInteraction class defines the interaction settings for the calendar.
This class allows you to configure various aspects of how users can interact with the calendar, such as resizing, rescheduling, and creating events. It also provides settings for snapping events to specific intervals or other events.
Example usage:
CalendarInteraction(
allowResizing: true,
allowRescheduling: true,
allowEventCreation: true,
);
Constructors
- CalendarInteraction({bool allowResizing = defaultAllowResizing, bool allowRescheduling = defaultAllowRescheduling, bool allowEventCreation = defaultAllowEventCreation, int throttleMilliseconds = defaultThrottleMilliseconds, CreateEventGesture? createEventGesture, CreateEventGesture? modifyEventGesture})
- Creates a new CalendarInteraction instance with the specified settings.
Properties
- allowEventCreation → bool
-
Allow the creation of events.
final
- allowRescheduling → bool
-
Allow the rescheduling of events.
final
- allowResizing → bool
-
Allow the resizing of events.
final
- createEventGesture → CreateEventGesture
-
The gesture used to create an event.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- modifyEventGesture → CreateEventGesture
-
The gesture used to modify an event.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- throttleMilliseconds → int
-
The number of milliseconds to throttle the interaction events.
final
Methods
-
copyWith(
{bool? allowResizing, bool? allowRescheduling, bool? allowEventCreation, int? throttleMilliseconds, CreateEventGesture? createEventGesture}) → CalendarInteraction - Creates a copy of this CalendarInteraction but with the given fields replaced with the new values. If the fields are not provided, the original values will be used.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Constants
- defaultAllowEventCreation → const bool
- defaultAllowRescheduling → const bool
- defaultAllowResizing → const bool
- defaultCreateEventGesture → const CreateEventGesture
- defaultMobileCreateEventGesture → const CreateEventGesture
- defaultMobileModifyEventGesture → const CreateEventGesture
- defaultModifyEventGesture → const CreateEventGesture
- defaultThrottleMilliseconds → const int