DataTableController<T> class

Inheritance

Constructors

DataTableController({List<T>? dataSources, int? totalRecords, Map<int, T>? dataSelected})

Properties

additionColumns List<DataTableAdditionColumn>
getter/setter pair
dataSelected Map<int, T>
no setter
dataSources List<T>
no setter
fixedColumnsLeft List<DataTableColumn<T>>
no setter
fixedColumnsRight List<DataTableColumn<T>>
no setter
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
haveFixedColumnsLeft bool
no setter
haveFixedColumnsRight bool
no setter
initTableColumns List<DataTableColumn<T>>
getter/setter pair
isLoading bool
no setter
mapIndexToHeightOfEachRow Map<int, double?>
no setter
mapKeyToWidthOfEachColumnContent Map<String, double>
no setter
pagination DataTablePagination
no setter
reloadFixedColumnStreamController StreamController<EventReloadFixedColumn>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tableColumnsContent List<DataTableColumn<T>>
no setter
totalRecords int
no setter
widthOfColumnsContent double?
no setter
widthOfLeftColumns double?
no setter
widthOfRightColumns double?
no setter

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
calculatePageNumber(int itemPerPage) int
calculatePagination() → void
calculateWidthOfAllColumnsContent() → void
canEditHeightOfEachRow(int index, double? value) bool
clearDataTable() → void
clearSelected() → void
dispose() → void
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener will throw after the object is disposed).
inherited
elementIsSelected(T data) bool
getWidthOfColumn(List<DataTableColumn<T>> columns) double?
initDataTable({List<DataTableColumn<T>> initTableColumns = const [], List<DataTableAdditionColumn> additionColumns = const []}) → void
initDataTableState({List<T>? dataSources, int? totalRecords, Map<int, T>? dataSelected, int? itemsPerPage, List<int>? listItemsPerPage, int? numberNextPage, int? currentPage}) → void
initPagination({List<int>? listItemsPerPage, int? itemsPerPage, int? numberNextPage, int? currentPage}) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
reloadDataTable() → void
reloadHeightFixedContent() → void
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
resetFirstPage() → void
selectAll(bool withValue) → void
selectElement(bool value, T data) → void
setCurrentPage(int currentPage) → void
setDataSources(List<T> dataSources) → void
setItemsPerPage(int itemsPerPage) → void
setLoading(bool value) → void
setPageNumber(int pageNumber) → void
setTotalRecords(int totalRecords) → void
setWidthOfColumnsContent(double value) → void
sort([int compare(T a, T b)?]) → void
toggleLoading() → void
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited