attributes property

List<Attribute> get attributes

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.

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 => [];