of static method

GlobalKey<State<StatefulWidget>> of(
  1. int index,
  2. BuildContext context
)

Gets the item global key based on the index

Implementation

static GlobalKey of(int index, BuildContext context) {
  final reference =
      context.dependOnInheritedWidgetOfExactType<PaneItemKeys>()!;
  return reference.keys[index]!;
}