of static method

Implementation

static ListController of(BuildContext context) {
  final ListController? result =
      context.dependOnInheritedWidgetOfExactType<ListController>();
  assert(result != null, 'No ListController found in context');
  return result!;
}