DraggableDough<T extends Object> class

A widget which mimics the behavior of Flutter's Draggable widget, only this one is squishy! For details on what each field does for this widget, view Flutter's docs for the Draggable widget.

Inheritance

Constructors

DraggableDough({Key? key, DraggableDoughRecipeData? recipe, VoidCallback? onDoughBreak, required Widget child, required Widget feedback, T? data, Axis? axis, Widget? childWhenDragging, Offset feedbackOffset = Offset.zero, DragAnchorStrategy dragAnchorStrategy = childDragAnchorStrategy, Axis? affinity, int? maxSimultaneousDrags, VoidCallback? onDragStarted, DraggableCanceledCallback? onDraggableCanceled, DragEndCallback? onDragEnd, VoidCallback? onDragCompleted, bool ignoringFeedbackSemantics = true, bool longPress = false})
Creates a DraggableDough widget.
const

Properties

affinity Axis?
See Flutter's docs.
final
axis Axis?
See Flutter's docs.
final
child Widget
See Flutter's docs.
final
childWhenDragging Widget?
See Flutter's docs.
final
data → T?
See Flutter's docs.
final
dragAnchorStrategy DragAnchorStrategy
See Flutter's docs.
final
feedback Widget
See Flutter's docs.
final
feedbackOffset Offset
See Flutter's docs.
final
hashCode int
The hash code for this object.
no setterinherited
ignoringFeedbackSemantics bool
See Flutter's docs.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
longPress bool
See Flutter's docs.
final
maxSimultaneousDrags int?
See Flutter's docs.
final
onDoughBreak VoidCallback?
A callback raised when the user drags the feedback widget beyond the DraggableDoughRecipeData.breakDistance and the Dough snaps back into its original form.
final
onDragCompleted VoidCallback?
See Flutter's docs.
final
onDragEnd DragEndCallback?
See Flutter's docs.
final
onDraggableCanceled DraggableCanceledCallback?
See Flutter's docs.
final
onDragStarted VoidCallback?
See Flutter's docs.
final
recipe DraggableDoughRecipeData?
Preferences for the behavior of this DraggableDough widget. This can be specified here or in the context of a DoughRecipe widget. This will override the contextual DraggableDoughRecipeData if provided.
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() DraggableDoughState<T>
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}) 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