of static method

Implementation

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