build method
override
Declares this node's children and behavior.
Runs once on mount, and again on every rebuild.
super.build() is required, as skipping it drops whatever the superclass
declared.
Implementation
@override
void build() {
super.build();
debugDraw((canvas) {
switch (shape) {
case Circle():
canvas.drawOval(shape.rect(), DEBUG_INPUT_PAINT);
case Rectangle():
canvas.drawRect(shape.rect(), DEBUG_INPUT_PAINT);
}
});
}