EditableTable class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- EditableTable
Constructors
-
EditableTable({Key? key, List<
EditableColumn> ? columns, List<EditableRow> ? initialRows, EditableTableController? controller, bool showToolbar = true, bool showRowNumbers = true, bool showActions = true, bool showTotals = false, String totalsLabel = 'Total', String? unitLabel, bool confirmDelete = true, bool growOnTab = true, bool showShortcutsHelp = true, ValueChanged<List< ? onChanged})EditableRow> > -
const
Properties
-
columns
→ List<
EditableColumn> ? -
Column schema. Required when controller is null.
final
- confirmDelete → bool
-
Show a confirmation popup before deleting a row (delete button, context
menu, and ⌘/Ctrl+Delete). When false, rows delete immediately.
final
- controller → EditableTableController?
-
Drive/observe from outside. When null the widget owns a private one
(built from columns + initialRows).
final
- growOnTab → bool
-
Pressing Tab on the very last cell appends a new row and jumps into it.
Set false to keep Tab clamped at the grid's end.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
initialRows
→ List<
EditableRow> ? -
Initial data when this widget owns its controller.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
onChanged
→ ValueChanged<
List< ?EditableRow> > -
Notified with the full row set whenever the data changes.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showActions → bool
-
Trailing actions column (insert-below + delete per row).
final
- showRowNumbers → bool
-
Leading row-number gutter (A1-style).
final
- showShortcutsHelp → bool
-
Show the “?” keyboard-shortcuts reference button in the toolbar.
final
- showToolbar → bool
-
Toolbar with the validation badge, clipboard hint and undo/redo.
final
- showTotals → bool
-
Totals footer summing every column flagged EditableColumn.includeInTotal.
final
- totalsLabel → String
-
Label shown in the footer's first cell.
final
- unitLabel → String?
-
Optional unit suffix shown under the grid (e.g. "SAR").
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< EditableTable> -
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