CometChatSingleSelect class

A Flutter widget for creating a single select element with multiple options.

Inheritance

Constructors

CometChatSingleSelect.new({Key? key, required List<OptionElement> options, String? selectedValue, ValueChanged<String>? onChanged, Color? optionBackground, Color? selectedOptionBackground, TextStyle? optionTextStyle, TextStyle? selectedOptionsTextStyle, Decoration? decoration, CometChatTheme? theme})
const

Properties

decoration Decoration?
Custom decoration for the widget.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onChanged ValueChanged<String>?
A callback function called when the selection changes.
final
optionBackground Color?
Background color for the options.
final
options List<OptionElement>
A list of options to display for selection.
final
optionTextStyle TextStyle?
Text style for the options.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedOptionBackground Color?
Background color for the selected option.
final
selectedOptionsTextStyle TextStyle?
Text style for the selected option.
final
selectedValue String?
The currently selected value from the list of options.
final
theme CometChatTheme?
Set the theme for this widget.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<CometChatSingleSelect>
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.
inherited
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