CanvasBackground class abstract
Abstract definition for a LazyCanvas background.
Constructors
- CanvasBackground({Color bgColor = Colors.white})
-
const
Properties
- bgColor → Color
-
the fill color of background
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- repaint → Listenable?
-
no setter
- 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
-
paint(
Canvas canvas, Offset screenOffset, Offset canvasOffset, double scale, Size canvasSize) → void -
draw the backround on this context. Implement this to have
different kinds of backgrounds
screenOffsetis the screen space offset for clippingcanvasOffsetis the grid space offset from the controller -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited