ComponentFactory class

Constructors

ComponentFactory()

Properties

hashCode int
The hash code for this object.
no setterinherited
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
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

locale FormioLocalizations
Get current locale
no setter

Static Methods

build({required ComponentModel component, dynamic value, required ValueChanged onChanged, Map<String, dynamic>? formData, void onSubmit()?, FilePickerCallback? onFilePick, DatePickerCallback? onDatePick, TimePickerCallback? onTimePick, bool enableLinks = true}) Widget
Creates the appropriate widget for a given component.
initialize(Map<String, FormioComponentBuilder> componentBuilders) → void
Initializes the ComponentFactory with custom component builders.
isRegistered(String type) bool
Checks if a custom component builder is registered for the given type.
register(String type, FormioComponentBuilder builder) → void
Registers a single custom component builder.
setLocale(FormioLocalizations newLocale) → void
Set global locale for all components
unregister(String type) → void
Removes a custom component builder registration.