of static method

Depends on and returns an ancestor KeyboardViewInsetsQuery.

Implementation

static KeyboardViewInsetsQuery of(BuildContext context) {
  final result =
      context.dependOnInheritedWidgetOfExactType<KeyboardViewInsetsQuery>();
  if (result != null) {
    return result;
  }
  throw FlutterError(
      'MathKeyboardViewInsetsQuery.of() called with a context that does not '
      'contain a MathKeyboardViewInsetsQuery.');
}