CustomRadioBtn class

Inheritance

Constructors

CustomRadioBtn({Key? key, required List<String> buttonLables, required List buttonValues, dynamic radioButtonValue(dynamic)?, required Color buttonColor, required Color selectedColor, String? defaultValue, double hight = 35, double width = 100, bool horizontal = false, bool enableShape = false, double elevation = 4, ShapeBorder? customShape, bool? enableAll})
const

Properties

buttonColor Color
Color of the radio buttons
final
buttonLables List<String>
The labels of the radio buttons
final
buttonValues List
List of values corresponding to the radio buttons
final
customShape ShapeBorder?
Custom shape for the radio buttons
final
defaultValue String?
Default selected value
final
elevation double
Elevation of the radio buttons
final
enableAll bool?
Whether to enable all radio buttons
final
enableShape bool
Whether to enable custom shape for the radio buttons
final
hashCode int
The hash code for this object.
no setterinherited
hight double
Height of the radio buttons
final
horizontal bool
Whether the radio buttons are arranged horizontally
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
radioButtonValue → dynamic Function(dynamic)?
The function which will be called when the radio button is selected
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedColor Color
Color of the selected radio button
final
width double
Width of the radio buttons
final

Methods

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