maybeOf static method

TreeRowDragScope? maybeOf(
  1. BuildContext context
)

The nearest enclosing row's drag scope, or null outside a reorderable tree (including inside the floating drag proxy, which renders in the root Overlay).

Implementation

static TreeRowDragScope? maybeOf(BuildContext context) {
  return context.dependOnInheritedWidgetOfExactType<TreeRowDragScope>();
}