ResponsiveDataTable<T, S extends BaseReadyListState<T>, TController extends ReadyListController<T, S>> class

responsive data table

if ResponsiveDataTableType.list it will display ReadyList

if ResponsiveDataTableType.table it will display PaginatedDataTable

if type is null then next:

if width return LayoutType.large or LayoutType.xLarge or LayoutType.xxLarge

Inheritance

Constructors

ResponsiveDataTable({Key? key, bool keepAlive = true, List<Widget> actions = const [], required DataTableOptions<T> dataTable, ListOptions<T, S>? list = const ListOptions._default(), ResponsiveDataTableType? type, List<Action<T, S, TController>> rowActions = const [], required TController controller, Widget buildFilters(Widget filters)?, SelectedButtonCallBack? selectionButton, List<DataTableFilter Function(BuildContext context)> filters = const []})

Properties

actions List<Widget>
options to be added at the top of the ReadyList or DataTable this is differ from the action of DashboardItem if you use it
final
buildFilters → (Widget Function(Widget filters)?)
show custom filter view
final
child Widget
The widget below this widget in the tree.
finalinherited
controller → TController
controller that extends ReadyListController
final
dataTable DataTableOptions<T>
DataTable options
final
filters List<DataTableFilter Function(BuildContext context)>
when is not empty filter button will be added to the top of DataTable
final
hashCode int
The hash code for this object.
no setterinherited
keepAlive bool
This will keep the state of tab
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
list ListOptions<T, S>?
List options
final
rowActions List<Action<T, S, TController>>
actions that will be assigned to each row
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectionButton SelectedButtonCallBack?
Widget to show when there is selection if this is null , then there is no selection handlers will be added
final

Methods

createElement() InheritedElement
Inflates this configuration to a concrete instance.
inherited
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
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}) 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
updateShouldNotify(covariant ResponsiveDataTable<T, S, TController> oldWidget) bool
Whether the framework should notify widgets that inherit from this widget.
override

Operators

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

Static Methods

selectionController<T, S extends BaseReadyListState<T>, TController extends ReadyListController<T, S>>(BuildContext context) SelectionController?