DataSourceAny class abstract

Inheritance
Implementers

Constructors

DataSourceAny({String? id, bool allowExport = true, bool supportSingleLineFilter = true})

Properties

allowExport bool
Indica se será permitido exportar dessa fonte ou não
finalinherited
allowOnSubmittSearch bool
Indica se a pesquisa pode ser efetuada após alguma confirmação, como após apertar enter (desktop).
getter/setter pairinherited
context → ReactiveContext
Override this method to use a custom context.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id String?
Indica a chave (id) dessa fonte de dados
finalinherited
listAll List<Map<String, dynamic>>?
getter/setter pair
listData ↔ ObservableList<ItemSelectTable>
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
searchDelay int
Indica o tempo de delay (em ms) entre a digitação do usuário e a busca dos dados É util para econimizar banda
finalinherited
supportPaginate bool
Indica se a fonte suporta paginação
getter/setter pairinherited
supportSingleLineFilter bool
Indica suporte a filtros por coluna
getter/setter pairinherited

Methods

applyFilterList(TypeSearch typeSearch, List<Map<String, dynamic>> list, String text) List<Map<String, dynamic>>
applyFilters(List<Map<String, dynamic>> listAll, GroupFilterExp? filter) List<Map<String, dynamic>>
applyGroupFilterExp(GroupFilterExp groupFilterExp, Map<String, dynamic> map) bool
applySort(ItemSort? itemSort, String keyId, List<Map<String, dynamic>>? list) List<Map<String, dynamic>>?
clear() Future
convertFiltersToLowerCase(GroupFilterExp? filter) GroupFilterExp?
inherited
exportData(SelectModel? selectModel, bool onlyFiltered, GroupFilterExp filter, String textSearch, TypeSearch typeSearch) Future
fetchData(int? limit, int offset, SelectModel? selectModel, {Map? data}) Future<List<Map<String, dynamic>>?>
filterByTypeSearch(TypeSearch typeSearch, dynamic value, dynamic text) bool
inherited
generateList(List<Map<String, dynamic>> data, int offset, SelectModel selectModel) List<ItemSelectTable>
inherited
getList(int limit, int offset, SelectModel? selectModel, {Map? data, bool refresh = false, ItemSort? itemSort, GroupFilterExp? filter}) Future<Stream<ResponseDataDataSource>>
getListSearch(String text, int limit, int offset, SelectModel? selectModel, {Map? data, bool? refresh = false, TypeSearch typeSearch = TypeSearch.CONTAINS, ItemSort? itemSort}) Future<Stream<ResponseDataDataSource>>
getSubList(int offset, int limit, List<Map<String, dynamic>>? tempList) List<Map<String, dynamic>>
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

Static Properties

decimalSeparatorInCSV String
getter/setter pair