NativeDataTable class

Inheritance

Constructors

NativeDataTable({required List<DataColumn> columns, required List<DataRow> rows, int rowsPerPage = PaginatedDataTable.defaultRowsPerPage, Widget? header, bool showSelect = true, bool showSort = true, ValueChanged<int?>? onRowsPerPageChanged, int? totalItems, ValueChanged<bool?>? onSelectAll, bool? sortAscending, int? sortColumnIndex, IndexedWidgetBuilder? mobileItemBuilder, Size tabletBreakpoint = _kTabletBreakpoint, List<Widget>? actions, int firstRowIndex = 0, List<Widget>? selectedActions, RefreshCallback? onRefresh, int mobileFetchNextRows = 100, VoidCallback? handlePrevious, VoidCallback? handleNext, bool rowCountApproximate = false, Widget? noItems, Widget? mobileIsLoading, List<Widget>? mobileSlivers, bool alwaysShowDataTable = false})
const
NativeDataTable.builder({required List<DataColumn> columns, int rowsPerPage = PaginatedDataTable.defaultRowsPerPage, required int itemCount, required DataRowBuilder itemBuilder, int? totalItems, Widget? header, ValueChanged<int?>? onRowsPerPageChanged, ValueChanged<bool?>? onSelectAll, bool? sortAscending, bool showSelect = true, bool showSort = true, int? sortColumnIndex, IndexedWidgetBuilder? mobileItemBuilder, Size tabletBreakpoint = _kTabletBreakpoint, List<Widget>? actions, List<Widget>? selectedActions, int firstRowIndex = 0, RefreshCallback? onRefresh, int mobileFetchNextRows = 100, VoidCallback? handlePrevious, VoidCallback? handleNext, bool rowCountApproximate = false, Widget? noItems, Widget? mobileIsLoading, List<Widget>? mobileSlivers, bool alwaysShowDataTable = false})
NativeDataTable.fromJson({required List<Map<String, dynamic>> items, List<String>? columnKeys, DataColumn columnBuilder(String key)?, DataRow rowBuilder(Map<String, dynamic> item)?, DataCell cellBuilder(String key, dynamic value)?, int rowsPerPage = PaginatedDataTable.defaultRowsPerPage, Widget? header, bool showSelect = true, bool showSort = true, ValueChanged<int?>? onRowsPerPageChanged, ValueChanged<bool?>? onSelectAll, bool? sortAscending, int? sortColumnIndex, IndexedWidgetBuilder? mobileItemBuilder, int? totalItems, Size tabletBreakpoint = _kTabletBreakpoint, List<Widget>? actions, int firstRowIndex = 0, List<Widget>? selectedActions, RefreshCallback? onRefresh, int mobileFetchNextRows = 100, VoidCallback? handlePrevious, VoidCallback? handleNext, bool rowCountApproximate = false, Widget? noItems, Widget? mobileIsLoading, List<Widget>? mobileSlivers, bool alwaysShowDataTable = false})

Properties

actions List<Widget>?
final
alwaysShowDataTable bool
final
columns List<DataColumn>
final
firstRowIndex int
final
handleNext VoidCallback?
final
handlePrevious VoidCallback?
final
hashCode int
The hash code for this object.
no setterinherited
Visible on Tablet/Desktop
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
mobileFetchNextRows int
final
mobileIsLoading Widget?
final
mobileItemBuilder IndexedWidgetBuilder?
final
mobileSlivers List<Widget>?
final
noItems Widget?
final
onRefresh RefreshCallback?
final
onRowsPerPageChanged ValueChanged<int?>?
final
onSelectAll ValueChanged<bool?>?
final
rowCountApproximate bool
Set this to true for using this with a api
final
rows List<DataRow>
final
rowsPerPage int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedActions List<Widget>?
final
showSelect bool
final
showSort bool
final
sortAscending bool?
final
sortColumnIndex int?
final
tabletBreakpoint Size
final
totalItems int?
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
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

Operators

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