of static method

Return an instance.

Implementation

static GameShortcutsProvider of(final BuildContext context) {
  final provider = maybeOf(context);
  if (provider == null) {
    throw StateError('No `GameShortcuts` could be found.');
  }
  return provider;
}