IPersistentKeyboardHeightStorageProvider class Null safety

An interface for preserving the height of the keyboard. The default implementation is SharedPreferencesPersistentKeyboardSizeStorageProvider.

In order to implement your own storage for create a class that implements this class and override setHeight and getHeight.

Example:

class CustomPersistentKeyboardHeightStorageProvider
    implements IPersistentKeyboardHeightStorageProvider {
  @override
  Future<double> getHeight() {
    // read the height from storage
  }

  @override
  Future<void> setHeight(double height) {
    // save the height to storage
  }
}

Constructors

IPersistentKeyboardHeightStorageProvider()

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

getHeight() Future<double>
Get the height from storage.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
setHeight(double height) Future<void>
Save the height to storage.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited