TFormField<T> class

Constructors

TFormField({required Widget builder(ValueChanged<T> ), required TFieldProp<T> prop})

Properties

builder Widget Function(ValueChanged<T> )
final
hashCode int
The hash code for this object.
no setterinherited
prop TFieldProp<T>
final
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
size(int md, {int? sm, int? lg}) TFormField<T>
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

date(TFieldProp<DateTime> prop, String? label, {String? tag, String? placeholder, String? helperText, bool isRequired = false, bool disabled = false, List<String? Function(DateTime?)>? rules, DateTime? firstDate, DateTime? lastDate, DateFormat? format}) TFormField<DateTime>
dateTime(TFieldProp<DateTime> prop, String? label, {String? tag, String? placeholder, String? helperText, bool isRequired = false, bool disabled = false, List<String? Function(DateTime?)>? rules, DateTime? firstDate, DateTime? lastDate, DateFormat? format}) TFormField<DateTime>
group<T extends TFormBase>(TFieldProp<T> prop, {String? label}) TFormField<T>
items<T extends TFormBase>(TFieldProp<List<T>> prop, T onNewItem(), {String? label, String buttonLabel = 'Add New', TItemAddPosition itemAddPosition = TItemAddPosition.first}) TFormField<List<T>>
multiSelect<T, V>(TFieldProp<List<V>> prop, String? label, {String? tag, String? placeholder, String? helperText, bool isRequired = false, bool disabled = false, List<String? Function(List<V>?)>? rules, List<T>? items, ItemTextAccessor<T>? itemText, ItemValueAccessor<T, V>? itemValue, ItemChildrenAccessor<T>? itemChildren, ItemKeyAccessor<T>? itemKey, bool multiLevel = false, int itemsPerPage = 10, TLoadListener<T>? onLoad, int searchDelay = 2500}) TFormField<List<V>>
number<T extends num>(TFieldProp<T> prop, String? label, {String? tag, String? placeholder, String? helperText, bool isRequired = false, bool disabled = false, List<String? Function(T?)>? rules, T? min, T? max, T? increment, T? decrement, int? decimals}) TFormField<T>
select<T, V>(TFieldProp<V> prop, String? label, {String? tag, String? placeholder, String? helperText, bool isRequired = false, bool disabled = false, List<String? Function(V?)>? rules, List<T>? items, ItemTextAccessor<T>? itemText, ItemValueAccessor<T, V>? itemValue, ItemChildrenAccessor<T>? itemChildren, ItemKeyAccessor<T>? itemKey, bool multiLevel = false, int itemsPerPage = 10, TLoadListener<T>? onLoad, int searchDelay = 2500}) TFormField<V>
tags(TFieldProp<List<String>> prop, String? label, {String? tag, String? placeholder, String? helperText, bool isRequired = false, bool disabled = false, List<String? Function(List<String>?)>? rules}) TFormField<List<String>>
text(TFieldProp<String> prop, String? label, {String? tag, String? placeholder, String? helperText, bool isRequired = false, bool disabled = false, List<String? Function(String?)>? rules, int? rows}) TFormField<String>
time(TFieldProp<TimeOfDay> prop, String? label, {String? tag, String? placeholder, String? helperText, bool isRequired = false, bool disabled = false, List<String? Function(TimeOfDay?)>? rules, DateFormat? format}) TFormField<TimeOfDay>