ForeignKey class
Constructors
ForeignKey ({required String sourceTable , required String sourceKeyColumn , required String sourceTargetColumn , required String lookupTable , required String lookupKeyColumn , required String lookupResultColumn , bool isProtected = true , bool onDeleteCascade = false })
Properties
hashCode
→ int
The hash code for this object.
no setter inherited
isProtected
→ bool
Define se a coluna que recebe o resultado (sourceTargetColumn) será protegida
automaticamente contra edição manual no Google Sheets. (Padrão: true)
final
lookupKeyColumn
→ String
A coluna de ID na tabela de referência.
Ex: "id"
final
lookupResultColumn
→ String
A coluna com o valor que queremos retornar (nome, descrição, etc).
Ex: "nome"
final
lookupTable
→ String
A tabela/aba de onde os dados serão buscados.
Ex: "Categorias"
final
onDeleteCascade
→ bool
Se verdadeiro, ao deletar um registro na aba de referência (lookupTable),
todos os registros vinculados a ele nesta aba (sourceTable) serão deletados
em cascata automaticamente. (Padrão: false)
final
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
sourceKeyColumn
→ String
A coluna na tabela de origem que contém o ID para busca.
Ex: "id_categoria"
final
sourceTable
→ String
A tabela/aba onde a fórmula será inserida.
Ex: "Produtos"
final
sourceTargetColumn
→ String
A coluna na tabela de origem que receberá o resultado (o "destino" do nome).
Ex: "nome_categoria_calculado"
final
Methods
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString ()
→ String
A string representation of this object.
inherited