openAppReview static method

Future<void> openAppReview({
  1. String defaultUrl = '',
})

Implementation

static Future<void> openAppReview({
  String defaultUrl = '',
}) async {
  final InAppReview inAppReview = InAppReview.instance;
  if (!kIsWeb &&
      (Platform.isAndroid || Platform.isIOS || Platform.isMacOS) &&
      (await inAppReview.isAvailable())) {
    inAppReview.requestReview();
  } else {
    launchUrl(defaultUrl);
  }
}