JuiDropdown3<T> class

Componente do Design System referente ao Dropdown

Componente só realiza a validação do groupValue ao clicar no botão de OK por este motivo se é utilizado variaveis auxiliares para exibição no JuiRadio, o controle de abertura quanto de fechamento deste modal só ocorre atraves dos botoes de actions, pois a propriedade barrierDismissible aqui é setado como falso para evitar problemas com o valor do dropdown.

Inheritance

Constructors

JuiDropdown3({Key? key, required String title, required List<JuiDropdownItem3<T>> items, TextEditingController? controller, String? hintText, T? groupValue, void fnOK()?, void fnCancel()?, Function? validator, double? sizeWidth, double? sizeHeight, Color? hintColor, bool enableLabel = true})

Properties

controller TextEditingController?
Controlador do TextField
final
enableLabel bool
Controla se o label será exibido.
final
fnCancel ↔ void Function()?
Função opcional para o ato de click no botão Cancel
getter/setter pair
fnOK ↔ void Function()?
Função opcional para o ato de click no botão OK
getter/setter pair
groupValue ↔ T?
Valor atual do grupo do Dropdown
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hintColor Color?
final
hintText String?
Placeholder do Input
final
items List<JuiDropdownItem3<T>>
Lista de Itens
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sizeHeight double?
Valor de altura para o SizedBox de opções do dropdown.
final
sizeWidth double?
Valor de largura para o SizedBox de opções do dropdown.
final
title String
Título do Dropdown
final
validator Function?
Função opcional para validação dos dados selecionados no Dropdown
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<JuiDropdown3<T>>
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