of static method

Implementation

static DirectSelectGestureEventListeners of(BuildContext context) {
  if (context.dependOnInheritedWidgetOfExactType<
          _InheritedContainerListeners>() ==
      null) {
    throw Exception(
        "A DirectSelectList must inherit a DirectSelectContainer!");
  }
  return context
      .dependOnInheritedWidgetOfExactType<_InheritedContainerListeners>()!
      .listeners;
}