onSetState method
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(() {});
}