ListField<T > class
Constructors
ListField ({ListFieldController <T > ? controller , FocusNode ? focusNode , Widget ? getLeading (BuildContext context , T model , {required bool enabled })?, Widget ? getTitle (BuildContext context , T model , {required bool enabled })?, Widget ? getSubtitle (BuildContext context , T model , {required bool enabled })?, String ? labelPrefix , String ? label , Widget ? labelWidget , FormFieldValidator <List <T > ? > ? validator , FormFieldSetter <List <T > > ? onSaved , List <T > ? initialValue , bool enabled = true , AutovalidateMode ? autovalidateMode = AutovalidateMode.disabled , InputDecoration ? decoration , EdgeInsets padding = const EdgeInsets.all(8) , EdgeInsets ? contentPadding , bool showAddButton = true , IconData addButtonIcon = FontAwesomeIcons.plus , String addButtonLabel = 'Adicionar' , Future <List <T > ? > addButtonOnTap (BuildContext context , List <T > data )?, bool canDelete (T model )?, IconData deleteIcon = FontAwesomeIcons.trashCan , String deleteMessage (BuildContext context , T model )?, String deleteDefaultMessage = 'Deseja excluir o ítem?' , Future <T? > itemOnTap (BuildContext context , T model )?, int ? sizeSmall , int ? sizeMedium , int ? sizeLarge , double ? minHeight , Key ? key })
Properties
addButtonIcon
→ IconData
final
addButtonLabel
→ String
final
addButtonOnTap
→ Future <List <T > ? > Function(BuildContext context , List <T > data ) ?
final
autovalidateMode
→ AutovalidateMode
Used to enable/disable this form field auto validation and update its
error text.
final inherited
builder
→ FormFieldBuilder <List <T > >
Function that returns the widget representing this form field.
final inherited
canDelete
→ bool Function(T model ) ?
final
controller
→ ListFieldController <T > ?
final
deleteDefaultMessage
→ String
final
deleteIcon
→ IconData
final
deleteMessage
→ String Function(BuildContext context , T model ) ?
final
enabled
→ bool
Whether the form is able to receive user input.
final inherited
errorBuilder
→ FormFieldErrorBuilder ?
Function that returns the widget representing the error to display.
final inherited
focusNode
→ FocusNode ?
final
forceErrorText
→ String ?
An optional property that forces the FormFieldState into an error state
by directly setting the FormFieldState.errorText property without
running the validator function.
final inherited
getLeading
→ Widget ? Function(BuildContext context , T model , {required bool enabled }) ?
final
getSubtitle
→ Widget ? Function(BuildContext context , T model , {required bool enabled }) ?
final
getTitle
→ Widget ? Function(BuildContext context , T model , {required bool enabled }) ?
final
hashCode
→ int
The hash code for this object.
no setter inherited
initialValue
→ List <T > ?
An optional value to initialize the form field to, or null otherwise.
final inherited
itemOnTap
→ Future <T? > Function(BuildContext context , T model ) ?
final
key
→ Key ?
Controls how one widget replaces another widget in the tree.
final inherited
minHeight
→ double ?
final inherited
onReset
→ VoidCallback ?
An optional method to call when the form field is reset via
FormFieldState.reset .
final inherited
onSaved
→ FormFieldSetter <List <T > > ?
An optional method to call with the final value when the form is saved via
FormState.save .
final inherited
restorationId
→ String ?
Restoration ID to save and restore the state of the form field.
final inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
safeMinHeight
→ double
no setter inherited
no setter inherited
no setter inherited
safeSizeLarge
→ int
no setter inherited
safeSizeMedium
→ int
no setter inherited
safeSizeSmall
→ int
no setter inherited
final inherited
final inherited
sizeLarge
→ int ?
final inherited
sizeMedium
→ int ?
final inherited
sizeSmall
→ int ?
final inherited
validator
→ FormFieldValidator <List <T > > ?
An optional method that validates an input. Returns an error string to
display if the input is invalid, or null otherwise.
final inherited