init method
Implementation
init(BuildContext context, {int? initialPage}) {
quranTools.getLastOpenedPageIndex().then((value) {
activeQuranPageIndex = value;
activeQuranPageIndex = initialPage ?? activeQuranPageIndex;
quranPageController = PageController(initialPage: activeQuranPageIndex);
quranIndicatorPageController = PageController(
viewportFraction: (0.45 / MediaQuery.of(context).size.width) * 100,
initialPage: activeQuranPageIndex);
});
}