Component class abstract

Base class for Components. Exposes a build method which returns Renderables instead of directly creating an AxelMap.

Inheritance
Implementers
Annotations
  • @immutable

Constructors

Component()
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

build(WriggleContext context) Renderable
Return a Renderable which is to be displayed.
getSize(WriggleContext context, Axis axis, int crossSize) int?
Report this item's intrinsic size, or null if it has none.
override
getUsageInfo(WriggleContext context) UsageInfo
Return usage info for this renderable, or redirect to its child.
override
keyPressed(WriggleContext context, KeyInput key) bool
Handle key presses. Return true if the key was absorbed, or false if another listener further up the tree should handle it.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
render(WriggleContext context, int width, int height) AxelMap
Produce an AxelMap of the specified size to be shown on screen.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited