attributes property
A getter that returns a list of Attribute objects.
This getter is used to configure what form should Formify render. It returns a list of Attribute objects, which can be of two types: FormifyAttribute and FormifyRowAttribute.
- FormifyAttribute is used to specify the configuration of a text form field, including its type and other properties.
- FormifyRowAttribute is used to group multiple FormifyAttribute instances horizontally within a row.
Example usage:
List<Attribute> get attributes => [
FormifyRowAttribute([
FormifyAttribute('first_name', FormifyType.name),
FormifyAttribute('last_name', FormifyType.name),
]),
FormifyAttribute('email_address', FormifyType.email),
FormifyAttribute('password', FormifyType.password),
];
Implementation
List<Attribute> get attributes => [];