ColourDragTargetFeedback class

Displays simple containers with colours depending on whether a drag is valid or not.

Inheritance

Constructors

ColourDragTargetFeedback({Color? none, Color? valid, Color? invalid, BoxShape shape = BoxShape.rectangle, EdgeInsetsGeometry? margin})
ColourDragTargetFeedback.fromTheme({BoardTheme theme = BoardTheme.blueGrey, BoxShape shape = BoxShape.rectangle, EdgeInsetsGeometry? margin})
Uses colours from theme.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
invalid Widget?
finalinherited
none Widget?
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
valid Widget?
finalinherited

Methods

build({required BuildContext context, required int id, required double squareSize, required List<PartialMove?> accepted, required List rejected}) Widget?
inherited
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