ResusableDatagridW<T> class
ResusableDatagridW.fields
what you pass into here is what will be compared in the filter.
For example if your original data is 1,2,3
but your field is Field
To display an int formatted into a string but search on the original int use the field property of Field.fieldDefForSortFilter
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- ResusableDatagridW
Constructors
-
ResusableDatagridW({Key? key, required List<
T> data, required List<Field< fields, required DateTime? lastSaveDate, required double headerHeight, void onRowClick(T)?, void onCreateClick()?, double rowHeight = 30, Field<T> >T> ? identityFieldId = null, void onSelectHeaderButton(List<String> )?, String selectName = "select", List<T> ? selectedIds, void onCheckboxChange(List<String> )?, double? maxHeight, double fontSize = 12, double columnSpacing = 10, double horizontalMargin = 10}) -
fields
definition of fields to displaylastSaveDate
change this field to update the list with new data (can't do a compare of thousands of records nicely)
Properties
- columnSpacing → double
-
final
-
data
→ List<
T> -
final
-
fields
→ List<
Field< T> > -
final
- fontSize → double
-
final
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- headerHeight → double
-
final
- horizontalMargin → double
-
final
-
identityFieldId
→ Field<
T> ? -
is used to identify the item for the selectedIds
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- lastSaveDate → DateTime?
-
final
- maxHeight → double?
-
if set, the datagrid shrinks to height of rows or maxHeight where it will page
final
-
onCheckboxChange
→ void Function(List<
String> )? -
final
- onCreateClick → void Function()?
-
final
- onRowClick → void Function(T)?
-
final
-
onSelectHeaderButton
→ void Function(List<
String> )? -
final
- rowHeight → double
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
selectedIds
→ List<
T> ? -
final
- selectName → String
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _ResusableDatagridW< T> -
Creates the mutable state for this widget at a given location in the tree.
override
-
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, int wrapWidth = 65}) → 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