PartDayDraggableEvent class
A widget that makes its child draggable starting from long press.
It must be used inside a MultiDateContent.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- PartDayDraggableEvent
Constructors
- PartDayDraggableEvent({PartDayDragStartCallback? onDragStart, PartDayDragUpdateCallback? onDragUpdate, PartDayDragEndCallback? onDragEnd, PartDayDragCanceledCallback? onDragCanceled, required Widget child, Widget? childWhileDragging})
-
PartDayDraggableEvent.forGeometryKeys(Set<
GlobalKey< geometryKeys, {PartDayDragStartCallback? onDragStart, PartDayDragUpdateCallbackWithGeometryKey? onDragUpdate, PartDayDragEndCallbackWithGeometryKey? onDragEnd, PartDayDragCanceledCallbackWithGeometryKey? onDragCanceled, required Widget child, Widget? childWhileDragging})MultiDateContentGeometry> >
Properties
- child → Widget
-
final
- childWhileDragging → Widget
-
final
-
geometryKeys
→ Set<
GlobalKey< MultiDateContentGeometry> > -
If this set is empty, the MultiDateContentGeometry will be looked up in the widget ancestors. This is the default for events placed in a MultiDateContent.
If this set contains a single key, it's geometry will be used, even if the event is not currently dragged directly over it.
If this set contains multiple keys, the first key whose geometry contains the current drag position will be used. E.g., if you have two MultiDateContent widgets next to each other, we will use the key of the MultiDateContent that this is currently being dragged over.
Otherwise, if the current drag position does not match any geometry, the first key will be used.
final - hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onDragCanceled → PartDayDragCanceledCallbackRaw?
-
Called when a drag gesture is canceled.
final
- onDragEnd → PartDayDragEndCallbackRaw?
-
Called when a drag gesture is ended.
final
- onDragStart → PartDayDragStartCallback?
-
final
- onDragUpdate → PartDayDragUpdateCallbackRaw?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< PartDayDraggableEvent> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited