yState method

void yState({
  1. VoidCallback? fn,
})

Implementation

void yState({
  VoidCallback? fn,
}) {
  if (yIsAlive && mounted) {
    setState(() => fn?.call());
  }
}