of static method
Typical usage is as follows:
final keyboardHeight = PersistentKeyboardHeight.of(context).keyboardHeight;
Implementation
static PersistentKeyboardHeight of(BuildContext context) {
final PersistentKeyboardHeight? result =
context.dependOnInheritedWidgetOfExactType<PersistentKeyboardHeight>();
assert(
result != null,
'No PersistentKeyboardHeight found in current widget tree.',
);
return result!;
}