AbstractList<T extends AbstractModel<ID>, B extends AbstractBuilder<T, ID>, C extends AbstractConsumer<T, ID>, ID> class abstract

Inheritance

Constructors

AbstractList({required bool selection, required bool multipleSelection, required C consumer, required B builder, bool invertSelection = false, bool forceOffline = false, Future<Widget?> onAdd(BuildContext context, B builder, C consumer)?, Future<Widget?> onUpdate(BuildContext context, T model, B builder, C consumer, {required bool edit})?, Map<String, String> qsParam = const <String, String>{}, int itemsPerPage = 50, int qtdSuggestions = 15, Future<Widget?> onLongPress(BuildContext context, T model, B builder, C consumer, {required bool edit})?, String? searchFieldLabel, TextStyle? searchFieldStyle, InputDecorationTheme? searchFieldDecorationTheme, TextInputType? searchKeyboardType, TextInputAction searchTextInputAction = TextInputAction.search, IconData selectedIcon = FontAwesomeIcons.solidCircleCheck, IconData unselectedIcon = FontAwesomeIcons.circle, int minLengthToSearch = 3, String hintText = 'Sugestões:', String selectionText = 'Selecionar %s', String startSearchText = 'Começe a sua pesquisa.\n' 'Digite ao menos %s caracteres.', String deleteText = 'Deseja excluir?', String invertSelectionText = 'Inverter seleção', String waitingText = 'Consultando...', String deleteErrorText = 'Ocorreu um erro ao tentar excluir:\n%s', String searchListEmpty = 'Nenhum documento.', String addText = 'Adicionar %s', bool showSearchButton = true, String searchButtonText = 'Pesquisar %s', String listEmpty = 'Sem %s até o momento.', bool showRefreshButton = false, String refreshButtonText = 'Atualizar', Widget? appBarLeading(BuildContext context)?, List<Widget> actions(BuildContext context, B builder, C consumer, Map<String, String> qsParam, {required bool selection})?, List<Widget> rowActions(BuildContext context, T model, B builder, C consumer, Map<String, String> qsParam, void refresh({bool clear})?, {required bool selection})?, double? leadingWidth, Key? key})
const

Properties

actions → List<Widget> Function(BuildContext context, B builder, C consumer, Map<String, String> qsParam, {required bool selection})?
final
addText → String
final
appBarLeading → Widget? Function(BuildContext context)?
final
builder → B
final
consumer → C
final
deleteErrorText → String
final
deleteText → String
final
forceOffline → bool
final
hashCode → int
The hash code for this object.
no setterinherited
hintText → String
final
invertSelection → bool
final
invertSelectionText → String
final
itemsPerPage → int
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
leadingWidth → double?
final
listEmpty → String
final
minLengthToSearch → int
final
multipleSelection → bool
final
onAdd → Future<Widget?> Function(BuildContext context, B builder, C consumer)?
final
onLongPress → Future<Widget?> Function(BuildContext context, T model, B builder, C consumer, {required bool edit})?
final
onUpdate → Future<Widget?> Function(BuildContext context, T model, B builder, C consumer, {required bool edit})?
final
path → String
no setterinherited
qsParam → Map<String, String>
final
qtdSuggestions → int
final
refreshButtonText → String
final
routeName → List<String>
no setteroverride
rowActions → List<Widget> Function(BuildContext context, T model, B builder, C consumer, Map<String, String> qsParam, void refresh({bool clear})?, {required bool selection})?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
searchButtonText → String
final
searchFieldDecorationTheme → InputDecorationTheme?
final
searchFieldLabel → String?
final
searchFieldStyle → TextStyle?
final
searchKeyboardType → TextInputType?
final
searchListEmpty → String
final
searchTextInputAction → TextInputAction
final
selectedIcon → IconData
final
selection → bool
final
selectionText → String
final
showRefreshButton → bool
final
showSearchButton → bool
final
startSearchText → String
final
unselectedIcon → IconData
final
waitingText → String
final

Methods

canDelete(T model) → bool
createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → AbstractListState<T, B, C, ID>
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
onDeleteError(BuildContext context, T model, Exception e, StackTrace s) → Future<void>
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

Constants

suggestionStyle → const TextStyle