updateX function
dynamic
updateX(
- dynamic context,
- dynamic offset,
- dynamic setState
Implementation
updateX(context, offset, setState) {
currentX += offset * -1;
setState(() {});
}