maybeOf<T extends DataGridRow> static method

CellScope<T>? maybeOf<T extends DataGridRow>(
  1. BuildContext context
)

Returns the nearest CellScope ancestor, or null if none exists.

Implementation

static CellScope<T>? maybeOf<T extends DataGridRow>(BuildContext context) {
  return context.dependOnInheritedWidgetOfExactType<CellScope<T>>();
}