refreshState method

Future refreshState()

Implementation

Future<dynamic> refreshState() async {
  setState(() {});
  await Future<dynamic>.delayed(
    widget.swapAnimationDuration! + const Duration(milliseconds: 50),
  );
  if (isPlaying) {
    await refreshState();
  }
}