SquarePiece class
A piece drawn by SquarePieceBuilder.
Constructors
- SquarePiece(Widget child, {bool ownsTravel = false})
-
const
Properties
- child → Widget
-
What to draw, sized to PieceSquareArgs.size.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- ownsTravel → bool
-
The widget animates its own way from PieceSquareArgs.fromOffset to its
square: the board places it on its square at once instead of sliding it,
and draws it over the other pieces while it travels. Only has an effect
when the piece moved (PieceSquareArgs.moved).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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