onSetState method

void onSetState(
  1. double keyboardHeight
)

Implementation

void onSetState(double keyboardHeight) {
  this.keyboardHeight = keyboardHeight;
  if (widget.update) {
    y = widget.yPosition;
    if (y == maxY) {
      if (yPosition + keyboardHeight > y) {
        yPosition = maxY! - keyboardHeight;
      }
    }
  }
  setState(() {});
}