ResizeEventOptions class

Configures the behavior for resizing events. When resizing is enabled, users can drag the end of events to increase/decrease their duration.

Constructors

ResizeEventOptions({required EventResizeCallback onEventResized, Duration snapToGridGranularity = const Duration(minutes: 15), Duration minimumEventDuration = const Duration(minutes: 15)})

Properties

hashCode int
The hash code for this object.
no setterinherited
minimumEventDuration Duration
Restricts resizing events to be shorter than this duration. Defaults to 15 minutes.
final
onEventResized EventResizeCallback
Triggered when the user performs a resize in an event.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
snapToGridGranularity Duration
When resizing, the event end is snapped to an imaginary grid, for better user experience. This variable controls the granularity of that grid, which defaults to 15 minutes (that is, events will be snapped to clock times ending in :00, :15, :30 and :45). To disable this snap, set this value to Duration.zero.
final

Methods

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.
inherited