DataTableOptions<T> class

options of DataTable

Constructors

DataTableOptions({required List<DataColumn> headers, required BuildItemCallBack<T> buildItem, EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 20), Widget refreshButton({required bool enabled, required VoidCallback onRefresh, required bool refreshing})? = _DefaultRefreshButton.get, Set<int> availableRowsCount = const {20, 40, 60, 80, 100}, int? initialRowsPerPage, Color headerColor(double percent)?})
const

Properties

availableRowsCount Set<int>
get the availableRowsCount which will show menu to allow user select from it We prefer list that contains preferred but its optional
final
buildItem BuildItemCallBack<T>
Get the list of widgets that describe the row list length must be equal to headers list
final
hashCode int
The hash code for this object.
no setterinherited
headerColor → (Color Function(double percent)?)
final
headers List<DataColumn>
DataTable headers
final
initialRowsPerPage int?
the initial rows per page it must be in availableRowsCount
final
padding EdgeInsetsGeometry
the initial rows per page it must be in availableRowsCount
final
refreshButton → (Widget Function({required bool enabled, required VoidCallback onRefresh, required bool refreshing})?)
whether to show refresh icon or not
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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