isPlaying method

bool isPlaying(
  1. PageData page
)

Implementation

bool isPlaying(PageData page) {
  return widget.pages.firstWhereOrNull((it) => !it.shown) == page;
}