DVChoice<T> class

One value picked from options. See the library documentation.

Inheritance
Mixed-in types

Constructors

DVChoice({Key? key, required List<T> options, required T selected, required String name(T option), required ValueChanged<T> onChanged, String optionTooltip(T option)?, String? label, DVChoiceStyle style = DVChoiceStyle.chips, DVModifier? modifier})
const

Properties

chainModifier → DVModifier?
The modifier the widget has so far, or null.
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label → String?
What is being picked: the group's name for a screen reader, and the field's label for a menu.
final
modifier → DVModifier?
Padding, width and the rest round the whole choice.
final
name → String Function(T option)
The words an option is shown and announced by.
final
onChanged → ValueChanged<T>
Called with the option picked.
final
options → List<T>
What can be picked, in the order shown.
final
optionTooltip → String Function(T option)?
An option's tooltip, when its name alone does not say enough (Large text (135%)). The name otherwise.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selected → T
The option picked now.
final
style → DVChoiceStyle
final

Methods

align(AlignmentGeometry value) → DVChoice<T>
DVModifier.align on this widget.
inherited
animate(Duration duration, {Curve curve = Curves.easeOut}) → DVChoice<T>
DVModifier.animate on this widget.
inherited
backdropBlur(double sigma) → DVChoice<T>
DVModifier.backdropBlur on this widget.
inherited
backgroundColor(Color value) → DVChoice<T>
DVModifier.backgroundColor on this widget.
inherited
backgroundImage(Object source, {BoxFit fit = BoxFit.cover, double opacity = 1, ImageRepeat repeat = ImageRepeat.noRepeat}) → DVChoice<T>
DVModifier.backgroundImage on this widget.
inherited
backgroundVideo(Object source) → DVChoice<T>
DVModifier.backgroundVideo on this widget.
inherited
blur(double sigma) → DVChoice<T>
DVModifier.blur on this widget.
inherited
border(BoxBorder value) → DVChoice<T>
DVModifier.border on this widget.
inherited
build(BuildContext context) → Widget
Describes the part of the user interface represented by this widget.
override
card() → DVChoice<T>
DVModifier.card on this widget.
inherited
centered() → DVChoice<T>
DVModifier.centered on this widget.
inherited
clipContent() → DVChoice<T>
DVModifier.clipContent on this widget.
inherited
color(Color value) → DVChoice<T>
DVModifier.color on this widget.
inherited
createElement() → StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
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.
inherited
decoration(TextDecoration value) → DVChoice<T>
DVModifier.decoration on this widget.
inherited
draggable(DVDragPayload payload) → DVChoice<T>
DVModifier.draggable on this widget.
inherited
dropTarget({required void onDrop(DVDropEvent event), Set<DVDropType> types = const <DVDropType>{.files, .text, .urls}, void onHover(bool hovering)?}) → DVChoice<T>
DVModifier.dropTarget on this widget.
inherited
fill() → DVChoice<T>
DVModifier.fill on this widget.
inherited
fontFamily(String value) → DVChoice<T>
DVModifier.fontFamily on this widget.
inherited
fontSize(double value) → DVChoice<T>
DVModifier.fontSize on this widget.
inherited
fontWeight(FontWeight value) → DVChoice<T>
DVModifier.fontWeight on this widget.
inherited
gradient(Gradient value) → DVChoice<T>
DVModifier.gradient on this widget.
inherited
heading(int level) → DVChoice<T>
DVModifier.heading on this widget.
inherited
height(double value) → DVChoice<T>
DVModifier.height on this widget.
inherited
hover(DVModifier whenHovered) → DVChoice<T>
DVModifier.hover on this widget.
inherited
input({String? label, String? hint, String? helper, bool obscureText = false, DVVisibilityToggle? visibilityToggle, bool multiline = false, DVInputKind? kind, String? error, VoidCallback? onSubmitted, ValueChanged<String>? onChanged}) → DVChoice<T>
DVModifier.input on this widget.
inherited
letterSpacing(double value) → DVChoice<T>
DVModifier.letterSpacing on this widget.
inherited
lineHeight(double value) → DVChoice<T>
DVModifier.lineHeight on this widget.
inherited
margin(double value) → DVChoice<T>
DVModifier.margin on this widget.
inherited
marginOnly({double left = 0, double top = 0, double right = 0, double bottom = 0}) → DVChoice<T>
DVModifier.marginOnly on this widget.
inherited
maxHeight(double value) → DVChoice<T>
DVModifier.maxHeight on this widget.
inherited
maxLines(int value) → DVChoice<T>
DVModifier.maxLines on this widget.
inherited
maxWidth(double value) → DVChoice<T>
DVModifier.maxWidth on this widget.
inherited
minHeight(double value) → DVChoice<T>
DVModifier.minHeight on this widget.
inherited
minimumTapTarget({double width = 48, double height = 48}) → DVChoice<T>
DVModifier.minimumTapTarget on this widget.
inherited
minWidth(double value) → DVChoice<T>
DVModifier.minWidth on this widget.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
offset(double dx, double dy) → DVChoice<T>
DVModifier.offset on this widget.
inherited
onDoubleTap(VoidCallback callback) → DVChoice<T>
DVModifier.onDoubleTap on this widget.
inherited
onGesture(DVGesture gesture) → DVChoice<T>
DVModifier.onGesture on this widget.
inherited
onHoverChanged(ValueChanged<bool> onChanged) → DVChoice<T>
DVModifier.onHoverChanged on this widget.
inherited
onLongPress(VoidCallback callback) → DVChoice<T>
DVModifier.onLongPress on this widget.
inherited
onPressed(VoidCallback callback) → DVChoice<T>
DVModifier.onPressed on this widget.
inherited
onSwipeDown(VoidCallback callback) → DVChoice<T>
DVModifier.onSwipeDown on this widget.
inherited
onSwipeLeft(VoidCallback callback) → DVChoice<T>
DVModifier.onSwipeLeft on this widget.
inherited
onSwipeRight(VoidCallback callback) → DVChoice<T>
DVModifier.onSwipeRight on this widget.
inherited
onSwipeUp(VoidCallback callback) → DVChoice<T>
DVModifier.onSwipeUp on this widget.
inherited
onTap(VoidCallback callback) → DVChoice<T>
DVModifier.onTap on this widget.
inherited
opacity(double value) → DVChoice<T>
DVModifier.opacity on this widget.
inherited
overflow(TextOverflow value) → DVChoice<T>
DVModifier.overflow on this widget.
inherited
padding(double value) → DVChoice<T>
DVModifier.padding on this widget.
inherited
paddingOnly({double left = 0, double top = 0, double right = 0, double bottom = 0}) → DVChoice<T>
DVModifier.paddingOnly on this widget.
inherited
paddingSymmetric({double horizontal = 0, double vertical = 0}) → DVChoice<T>
DVModifier.paddingSymmetric on this widget.
inherited
pageSlot(String name) → DVChoice<T>
DVModifier.pageSlot on this widget.
inherited
radius(BorderRadiusGeometry value) → DVChoice<T>
DVModifier.radius on this widget.
inherited
revealOnScroll({Duration delay = Duration.zero}) → DVChoice<T>
DVModifier.revealOnScroll on this widget.
inherited
rotate(double degrees) → DVChoice<T>
DVModifier.rotate on this widget.
inherited
rounded(double value) → DVChoice<T>
DVModifier.rounded on this widget.
inherited
semanticButton([bool value = true]) → DVChoice<T>
DVModifier.semanticButton on this widget.
inherited
semanticHeading(int level) → DVChoice<T>
DVModifier.semanticHeading on this widget.
inherited
semanticHint(String value) → DVChoice<T>
DVModifier.semanticHint on this widget.
inherited
semanticLabel(String value) → DVChoice<T>
DVModifier.semanticLabel on this widget.
inherited
semanticRole(String role) → DVChoice<T>
DVModifier.semanticRole on this widget.
inherited
shadow(List<BoxShadow> shadows) → DVChoice<T>
DVModifier.shadow on this widget.
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
tooltip(String value) → DVChoice<T>
DVModifier.tooltip on this widget.
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
width(double value) → DVChoice<T>
DVModifier.width on this widget.
inherited
withModifier(DVModifier modifier) → DVChoice<T>
The same widget with modifier in place of its own.
override

Operators

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