askForAppReviewIfNeeded method

Future<void> askForAppReviewIfNeeded(
  1. BuildContext context
)

Checks if app review is needed and displays the app rating dialog if so.

Implementation

Future<void> askForAppReviewIfNeeded(BuildContext context) async {
  if (await shouldAskForAppReview()) {
    if (context.mounted) {
      return showAppRatingDialog(context);
    }
  }
}