FieldConfig class

Model representing the configuration for a single form field.

Constructors

FieldConfig({required String key, required String type, String? label, bool required = false, Map<String, dynamic> extra = const {}})
Creates a FieldConfig instance.
FieldConfig.fromJson(Map<String, dynamic> json)
Creates a FieldConfig from a JSON map.
factory

Properties

extra Map<String, dynamic>
Extra configuration for the field (options, placeholder, etc.).
final
hashCode int
The hash code for this object.
no setterinherited
key String
The unique key for the field.
final
label String?
Optional label for the field.
final
required bool
Whether the field is required.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
The type of the field (e.g., 'text', 'dropdown', etc.).
final

Methods

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

Operators

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