showTutorials method

void showTutorials(
  1. BuildContext context,
  2. String data
)

Implementation

void showTutorials(BuildContext context, String data) async {
  ShowTutorialsModel.instance.getData(UpshotMethodChannelInternal.data!);
  if (ShowTutorialsModel.instance.tutorialList.isNotEmpty) {
    ShowTutorialsModel.instance.isTutorialPresent = true;
    ShowTutorialsModel.context = context;
    ShowTutorials.of(context);
    ShowTutorialsModel.instance.orientation =
        MediaQuery.of(context).orientation;
    Navigator.push(context,
        TransparentRoute(widgetBuilder: (context) => const ShowTutorials()));
  } else {
    log('No Elements found');
  }
}