FormioComponentBuildContext class

Configuration for building a Form.io component widget.

This class encapsulates all the parameters needed to build a component, making it easier to pass around and extend in the future.

Constructors

FormioComponentBuildContext({required ComponentModel component, required dynamic value, required ValueChanged onChanged, Map<String, dynamic>? formData, void onSubmit()?, FilePickerCallback? onFilePick, DatePickerCallback? onDatePick, TimePickerCallback? onTimePick})
const

Properties

component ComponentModel
The Form.io component definition
final
formData Map<String, dynamic>?
The entire form data (for conditional logic, calculations, etc.)
final
hashCode int
The hash code for this object.
no setterinherited
onChanged ValueChanged
Callback when the value changes
final
onDatePick DatePickerCallback?
Optional date picker callback
final
onFilePick FilePickerCallback?
Optional file picker callback
final
onSubmit → void Function()?
Optional callback to trigger form submission. Set saveToServer to false if you only want to trigger the success callback with data.
final
onTimePick TimePickerCallback?
Optional time picker callback
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → dynamic
The current value of the component
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