DesignValueHandle class

A focusable value between min and max.

Along a horizontal axis, Right and Up raise the value (Left in right to left). Along a vertical one, the arrow toward growsToward raises it.

DesignValueHandle(value: 0.5, onChanged: (value) {}, semanticLabel: 'Volume', builder: (context, states) => const SizedBox(width: 20, height: 20))
Inheritance

Constructors

DesignValueHandle({Key? key, required double value, required ValueChanged<double>? onChanged, required DesignHandleBuilder builder, double min = 0, double max = 1, double? step, double? pageStep, int? divisions, Axis axis = Axis.horizontal, VerticalDirection growsToward = VerticalDirection.up, ValueChanged<double>? onChangeStart, ValueChanged<double>? onChangeEnd, bool dragging = false, String? semanticLabel, String semanticFormatterCallback(double value)?, FocusNode? focusNode, bool autofocus = false, MouseCursor? mouseCursor, Size minimumSize = const Size(44, 44), KeyEventResult onKeyEvent(FocusNode node, KeyEvent event)?})
A handle at value.
const

Properties

autofocus → bool
Whether it takes focus when it first shows.
final
axis → Axis
Which way the track runs.
final
builder → DesignHandleBuilder
Paints the handle.
final
divisions → int?
How many steps the range snaps to; null: none.
final
dragging → bool
Whether the parent is dragging it (WidgetState.pressed).
final
focusNode → FocusNode?
Its focus node.
final
growsToward → VerticalDirection
Which way the value grows along a vertical track.
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
max → double
The greatest value.
final
min → double
The least value.
final
minimumSize → Size
The least size of its target.
final
mouseCursor → MouseCursor?
The cursor over it; null: a grab cursor along its axis.
final
onChanged → ValueChanged<double>?
A key's or a screen reader's new value.
final
onChangeEnd → ValueChanged<double>?
Called after a key changed the value.
final
onChangeStart → ValueChanged<double>?
Called before a key changes the value.
final
onKeyEvent → KeyEventResult Function(FocusNode node, KeyEvent event)?
Keys it does not handle itself (Enter on a split view's divider).
final
pageStep → double?
A page key's change; null: a tenth of the range (at least a step).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
semanticFormatterCallback → String Function(double value)?
What a screen reader hears for a value, as Slider.semanticFormatterCallback; null: a whole percentage of the range.
final
semanticLabel → String?
What a screen reader calls it.
final
step → double?
An arrow's change; null: a division, else a hundredth of the range.
final
value → double
The value.
final

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<DesignValueHandle>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited

Operators

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