onAnimatedButtonLongPressMoveUpdate method

void onAnimatedButtonLongPressMoveUpdate(
  1. LongPressMoveUpdateDetails details
)

animated button on Long Press Move Update

Implementation

void onAnimatedButtonLongPressMoveUpdate(
    LongPressMoveUpdateDetails details) async {
  if (!isText && _isRecording == true) {
    _duration = 0;
    _position = details.localPosition.dx * -1;
    notifyListeners();
  }
}