ComponentModel class

Constructors

ComponentModel({required String type, required String key, required String label, bool hideLabel = false, String? placeholder, required bool required, bool disabled = false, String? description, String? prefix, String? suffix, dynamic defaultValue, required Map<String, dynamic> raw})
ComponentModel.fromJson(Map<String, dynamic> json)
factory

Properties

conditional Map<String, dynamic>?
Conditional logic configuration for this component.
no setter
conditionalField String?
no setter
conditionalValue → dynamic
no setter
defaultValue → dynamic
The default value for the component, if any.
final
description String?
Description/help text shown below the field.
final
disabled bool
Whether the component is disabled.
final
hashCode int
The hash code for this object.
no setterinherited
hideLabel bool
Whether to hide the label.
final
key String
Key identifier used for mapping form data.
final
label String
Display label shown on the UI.
final
placeholder String?
Placeholder text for input fields.
final
prefix String?
Prefix text/icon for the input.
final
raw Map<String, dynamic>
The original raw JSON structure of the component.
final
required bool
Whether this component is required to be filled by the user.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shouldShowConditionally bool
Normalized conditional.show as bool
no setter
suffix String?
Suffix text/icon for the input.
final
type String
Type of the component (e.g., "textfield", "select", "checkbox").
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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