BaseFormComponent<ResultType, DataType extends BaseComponentData<ResultType>> class abstract

Implementers

Constructors

BaseFormComponent.new({required DataType componentData, required DynamicFormSettings formFieldSettings, required List<ComponentLinker>? parentComponents})

Properties

componentData → DataType
final
componentId String
no setter
componentWidgetData ComponentWidgetData<ResultType, DataType>
no setter
data → dynamic
no setter
hashCode int
The hash code for this object.
no setterinherited
hasValidData bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addDependent(ComponentLinker dependent) → void
addError(Object? error) → void
clearData({bool goToDefaults = true}) → void
clearError() → void
fetchData() → ResultType?
linkWithParents(Map<String, BaseFormComponent<dynamic, BaseComponentData>> components) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
primitiveData(ResultType? data) → dynamic
toJson() JsonMap
toString() String
A string representation of this object.
inherited
toWidget({required Map<String, BaseFormComponent<dynamic, BaseComponentData>> components}) Widget
updateReadOnlyStatus() → void
updateSettings(DynamicFormSettings settings) → void
validateAndFetchData({bool reflectErrorsInUI = true}) → ResultType?
validateData({bool reflectErrorsInUI = true}) bool

Operators

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

Static Methods

parseComponent(JsonMap data, {required AbstractDynamicFormParser formParser}) BaseFormComponent<dynamic, BaseComponentData>