NiceFormFieldDef class

A field definition used by NiceFormBuilder.

Constructors

NiceFormFieldDef({required String key, required NiceFormFieldType type, String? label, String? hint, bool required = false, bool readOnly = false, dynamic defaultValue, List<String>? options, int flex = 1, List<String Function(dynamic value)>? validators})
const
NiceFormFieldDef.fromJson(Map<String, dynamic> json)
factory

Properties

defaultValue → dynamic
final
flex int
final
hashCode int
The hash code for this object.
no setterinherited
hint String?
final
key String
final
label String?
final
options List<String>?
final
readOnly bool
final
required bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type NiceFormFieldType
final
validators List<String Function(dynamic value)>?
final

Methods

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

Operators

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