isRequestReviewAvailable property Null safety

Future<bool> isRequestReviewAvailable

Check if requestReview feature available.

Implementation

static Future<bool> get isRequestReviewAvailable async {
  if (Platform.isIOS || Platform.isAndroid) {
    try {
      final result =
          await _channel.invokeMethod<String>('isRequestReviewAvailable');
      return result == '1';
    } finally {}
  }

  return false;
}