InputConfig class

Configuration for an input.

Constructors

InputConfig(String id, String? label, {String? type = 'text', String? value = '', bool? checked, int? precision, String? placeholder = '', Map<String, String>? attributes, Map<String, String>? options, bool? optional = false, Object? classes, String? labelStyle, String? labelVerticalAlign, String? style, FieldInputRender? inputRender, FieldValueProvider? valueProvider, FieldValueValidator? valueValidator, FieldValueNormalizer? valueNormalizer, Object? invalidValueMessage, FieldValueEvent? onChangeListener, FieldValueEvent? onActionListener})

Properties

attributes → Map<String, String>?
no setter
checked → bool?
final
classes ↔ List<String>
getter/setter pair
fieldName → String
no setter
hashCode → int
The hash code for this object.
no setterinherited
hasValueNormalizer → bool
no setter
hasValueValidator → bool
no setter
id → String
no setter
invalidValueMessage → String?
no setter
label → String?
no setter
labelStyle ↔ String?
getter/setter pair
labelVerticalAlign ↔ String?
getter/setter pair
onActionListener → FieldValueEvent?
final
onChangeListener → FieldValueEvent?
final
optional → bool
no setter
options → Map<String, String>?
no setter
placeholder → String?
no setter
precision → int?
final
required → bool
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
style ↔ String?
getter/setter pair
type → String
no setter
value ↔ String?
getter/setter pair
valueProvider → FieldValueProvider?
no setter

Methods

normalizeValue(dynamic value) → dynamic
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
renderInput([FieldValueProvider? fieldValueProvider]) → dynamic
toString() → String
A string representation of this object.
inherited
validateValue(dynamic value) → bool

Operators

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

Static Methods

from(dynamic config, [String? id]) → InputConfig?
listFromMap(Map map) → List<InputConfig>