SingleSelectElement class
Represents a single select element model class used to create a single select input element.
This class, SingleSelectElement, is designed to represent a single select input element. It extends BaseInputElement<String> and provides the specific functionality required for handling single select elements. It includes properties for label, options, and methods for serialization and validation.
- Inheritance
-
- Object
- ElementEntity
- BaseInputElement<
String> - SingleSelectElement
Constructors
-
SingleSelectElement({String elementType = UIElementTypeConstants.singleSelect, required String elementId, required String label, required List<
OptionElement> options, String? response, String? defaultValue, bool? optional = true}) - SingleSelectElement.fromMap(dynamic map)
-
factory
Properties
- defaultValue ↔ String?
-
getter/setter pairinherited
- elementId ↔ String
-
getter/setter pairinherited
- elementType ↔ String
-
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- label ↔ String
-
The label to be displayed for the single select element.
getter/setter pair
- optional ↔ bool
-
getter/setter pairinherited
-
options
↔ List<
OptionElement> -
A list of options available for selection within the single select element.
getter/setter pair
- response ↔ String?
-
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
-
validateResponse(
) → bool -
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited