RadioButtonElement class is utilised to create a single selection input element in a user interface.
Class Usage
Here’s how to create an instance of theRadioButtonElement class:
- Dart
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
RadioButtonElement class is utilised to create a single selection input element in a user interface.
| Name | Type | Description |
|---|---|---|
| elementId | string | Used to set unique ID for the element |
| label | string | Used to set a label for the element |
| options | List<OptionElement> | Used to set options for the element |
| optional | bool | Used to set optional flag for the element |
| defaultValue | String | Used to set default value for the element |
RadioButtonElement class:
RadioButtonElement(
elementId: "gender",
label: "Gender",
options: [
OptionElement(label: "Male",value: "Male" ),
OptionElement(label: "Female",value: "Female" ),
]
)
Was this page helpful?