ComponentDropZone class

A card a dragged one can be dropped on: above it in its top half, below it in its bottom half, a line showing which. A pinned card takes a drop only below it — nothing goes above it.

Inheritance

Constructors

ComponentDropZone({Key? key, required Entity entity, required Type type, required void onDrop(Type dragged, {required bool above}), required Widget child})
const

Properties

child → Widget
The card itself; the drop line is drawn over its top or bottom edge.
final
entity → Entity
The entity whose cards may be dropped here; a card of another entity, or this card itself, is refused.
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onDrop → void Function(Type dragged, {required bool above})
The dragged component type was dropped just before this card (above true) or just after it.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → Type
The type of the card this is.
final

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<ComponentDropZone>
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