ResourceField class

Descreve UM campo de um recurso (produto, usuário, pedido...). O FlenxResourcePage usa a lista de campos para montar a tabela e o formulário de criar/editar — sem você escrever UI específica.

Constructors

ResourceField(String key, String label, {FieldKind kind = FieldKind.text, List<String> options = const [], bool inTable = false, bool required = false, String? hint})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
hint String?
final
inTable bool
Se aparece como coluna na listagem.
final
key String
Chave no JSON/banco (ex.: name, price, role).
final
kind FieldKind
final
label String
final
options List<String>
Opções quando kind é FieldKind.select.
final
required bool
Se é obrigatório no formulário.
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
toString() String
A string representation of this object.
inherited

Operators

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