launchAppStoreReview function

dynamic launchAppStoreReview({
  1. required void onCompleted(
    1. bool
    ),
})

Implementation

launchAppStoreReview({
  required void Function(bool) onCompleted,
}) async {
  final InAppReview inAppReview = InAppReview.instance;
  inAppReview.isAvailable().then((ready) {
    if (ready) {
      inAppReview.requestReview();
    }

    onCompleted(ready);
  });
}