ButtonFormItem class

Form item that wraps KeyListener for submission or extra pages.

Inheritance

Constructors

ButtonFormItem({required bool focused, String? label, required String content, required void onPressed(WriggleContext context), TextAlignment contentAlignment = TextAlignment.center, bool leadingArrow = false, bool trailingArrow = false})
Form item that wraps KeyListener for submission or extra pages.
const

Properties

content → String
Content for the button
final
contentAlignment → TextAlignment
Text alignment for the button's text.
final
focused → bool
Focused.
final
hashCode → int
The hash code for this object.
no setterinherited
label → String?
Label to display above button.
final
leadingArrow → bool
Whether to show leading arrow (implying a back button).
final
onPressed → void Function(WriggleContext context)
Starting selection.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
trailingArrow → bool
Whether to show trailing arrow (implying a nested menu).
final

Methods

build(WriggleContext context) → Renderable
Return a Renderable which is to be displayed.
override
getSize(WriggleContext context, Axis axis, int crossSize) → int?
Report this item's intrinsic size, or null if it has none.
inherited
getUsageInfo(WriggleContext context) → UsageInfo
Return usage info for this renderable, or redirect to its child.
inherited
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.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

read(WriggleContext context, String? key, [bool startingValue = false]) → bool
Read this component's internal state.