requestReview property Null safety

Future<String?> requestReview

Request review.

Tells StoreKit / Play Store to ask the user to rate or review your app, if appropriate. Supported only in iOS 10.3+ and Android with Play Services installed (see isRequestReviewAvailable).

Returns string with details message.

Implementation

static Future<String?> get requestReview async {
  if (Platform.isIOS) {
    return openIosReview();
  }

  if (Platform.isAndroid) {
    return openAndroidReview();
  }

  return null;
}