CommercialDoc class

Um documento comercial exibido na Central (FlenxDocHub) e servido em /{base}/{slug} — proposta, cartão de visita, tabela de preços, etc.

Você escreve o conteúdo em Dart (componentes Flenx). A Central e a página do documento (barra de imprimir, invólucro de folha/cartão, regras de impressão) são geradas automaticamente.

Constructors

CommercialDoc({required String slug, required String title, required String kind, required Component builder(), String description = '', String? meta, DocPrintFormat format = DocPrintFormat.sheet})
const

Properties

builder → Component Function()
Conteúdo do documento (componentes Flenx).
final
description → String
Texto curto no card da Central.
final
format → DocPrintFormat
Invólucro/impressão do documento.
final
hashCode → int
The hash code for this object.
no setterinherited
kind → String
Categoria (vira filtro na Central). Ex.: 'Proposta', 'Cartão'.
final
meta → String?
Linha de rodapé opcional do card (ex.: data, formato).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
slug → String
Identificador na URL (ex.: proposta-comercial).
final
title → String
Título exibido no card e na barra do documento.
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

Operators

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