AppApiEndpointTile class final
Cartão colapsável de um endpoint: verbo, path e resumo no cabeçalho;
parâmetros, corpo, respostas e curl no corpo.
Construído sobre as mesmas primitivas do AppExpansionTile
(FlocksInteraction + AppExpand + AppAnimatedRotation) em vez de
envolvê-lo: aquele componente só aceita title String, e aqui o cabeçalho
é composto (pílula do verbo + path em mono + resumo + ações).
Somente leitura — o curl é um exemplo com placeholder de credencial,
nunca o token da sessão. O componente não executa nada.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- AppApiEndpointTile
Constructors
-
AppApiEndpointTile({required AppApiEndpoint endpoint, String? baseUrl, bool initiallyExpanded = false, ValueChanged<
bool> ? onExpansionChanged, bool showCopyPath = true, bool showAllResponseExamples = false, AppStyle? style, AppRadiusMode? radiusMode, Key? key}) -
Cria um AppApiEndpointTile.
const
Properties
- baseUrl → String?
-
Base da API, mostrada esmaecida antes do path e usada no copiar.
final
- endpoint → AppApiEndpoint
-
Endpoint documentado.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- initiallyExpanded → bool
-
Se o cartão nasce aberto.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
onExpansionChanged
→ ValueChanged<
bool> ? -
Notificado a cada abre/fecha.
final
- radiusMode → AppRadiusMode?
-
Override do modo de forma.
nullsegue o global.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showAllResponseExamples → bool
-
Mostra o corpo de exemplo de todas as respostas.
final
- showCopyPath → bool
-
Mostra o botão de copiar o path completo no cabeçalho.
final
- style → AppStyle?
-
Tratamento de container (AppStyle).
nullsegue o global.final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< AppApiEndpointTile> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited