EventContext<T extends DataGridRow> class

Context provided to events for applying state transformations.

Contains only complex/stateful components:

  • ViewportDelegate: Pluggable viewport calculations
  • SortDelegate: Pluggable sorting with debouncing and async operations
  • FilterDelegate: Pluggable filtering with debouncing and async operations
  • DataIndexer: Data filtering and sorting operations

Constructors

EventContext({required DataGridState<T> state, required ViewportDelegate<T> viewportDelegate, required SortDelegate<T> sortDelegate, required FilterDelegate<T> filterDelegate, required DataIndexer<T> dataIndexer, required void dispatchEvent(DataGridEvent), bool canEditCell(double rowId, int columnId)?, bool canSelectRow(double rowId)?, Future<bool> onCellCommit(double rowId, int columnId, dynamic oldValue, dynamic newValue)?})
const

Properties

canEditCell bool Function(double rowId, int columnId)?
final
canSelectRow bool Function(double rowId)?
final
dataIndexer DataIndexer<T>
final
dispatchEvent → void Function(DataGridEvent)
final
filterDelegate FilterDelegate<T>
final
hashCode int
The hash code for this object.
no setterinherited
onCellCommit Future<bool> Function(double rowId, int columnId, dynamic oldValue, dynamic newValue)?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sortDelegate SortDelegate<T>
final
state DataGridState<T>
final
viewportDelegate ViewportDelegate<T>
final

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