SelectModel class

Constructors

SelectModel(String title, String id, List<Line> lines, DataSource dataSource, TypeSelect typeSelect, {List<FilterBase>? filters, List<ActionSelect>? actions, List<ActionSelectBase>? buttons, List<int>? selectedItens, bool showPreSelected = false, DataSource? alternativeDataSource, bool? openSearchAutomatically, List<ItemSelect>? preSelected, bool confirmToLoadData = false, bool? allowSelectAll, bool showFiltersInput = true, SelectModelTheme theme = const SelectModelTheme(tableTheme: SelectModelThemeTable()), CustomBottomBuilder? tableBottomBuilder, CustomBottomBuilder? tableTopLeftBuilder, Future<Line?> initialFilter(List<Line>)?, CustomBottomBuilder? listBottomBuilder, bool? showInCards, Widget filterTopBuilder(BuildContext)?, bool bottomActionForTypeSelectMULTIPLE = true})

Properties

actions List<ActionSelect>?
Ações que serão selecionáveis após o clique em cada item
getter/setter pair
allowSelectAll bool?
Indica se o botão de selecionar todos ficará visível ou não
getter/setter pair
alternativeDataSource DataSource?
Caso a fonte de daos principal falhe, tenta buscar os dados da segunda fonte
getter/setter pair
bottomActionForTypeSelectMULTIPLE bool
Indicates if bottom action must be showed when TypeSelect.MULTIPLE.
getter/setter pair
buttons List<ActionSelectBase>?
Botões que apareceram no canto inferior direito
getter/setter pair
confirmToLoadData bool
caso true, não carrega os dados automaticamente, exibindo um botão na tela para fazer isso
getter/setter pair
dataSource DataSource
Indica a fonte dos dados a ser exibidos
getter/setter pair
filters List<FilterBase>?
getter/setter pair
filterTopBuilder ↔ (Widget Function(BuildContext)?)
Builds a Widget between AppBar and the filter Widgets
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String
Chave do id de cada linha
getter/setter pair
initialFilter ↔ (Future<Line?> Function(List<Line>)?)
Set default filter on table
getter/setter pair
lines List<Line>
Lista de linhas a serem exibidas
getter/setter pair
listBottomBuilder CustomBottomBuilder?
Widget to fill the bottom of the list
getter/setter pair
openSearchAutomatically bool?
Caso seja true, abre a pesquisa automaticamente
getter/setter pair
preSelected List<ItemSelect>?
Uma lista dos ids que devem iniciar pré-selecionados
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedItens List<int>?
Uma lista dos ids que devem iniciar pré-selecionados
getter/setter pair
showFiltersInput bool
Indica se devem aparecer os campos de filtro para a tabela (EXPERIMENTAL)
getter/setter pair
showInCards bool?
Indicates that the content in the listing must always be presented on cards
getter/setter pair
showPreSelected bool
define se os itens já selecionados que constam na lista selectedItens ou preSelected Devem aparecer na listagem ou não
getter/setter pair
tableBottomBuilder CustomBottomBuilder?
Widget to fill the bottom left corner of the table
getter/setter pair
tableTopLeftBuilder CustomBottomBuilder?
Builds a Widget in the top left of table search widgets
getter/setter pair
theme SelectModelTheme
Custom theme
getter/setter pair
title String
Titulo a ser exibido na parte superior
getter/setter pair
typeSelect TypeSelect
Selection type
getter/setter pair

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