Skip to content

Instantly share code, notes, and snippets.

@SergeiMikhailovskii
Created March 15, 2024 21:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SergeiMikhailovskii/31a3f131815798753442c50a3e089bd6 to your computer and use it in GitHub Desktop.
Save SergeiMikhailovskii/31a3f131815798753442c50a3e089bd6 to your computer and use it in GitHub Desktop.
class MethodChannelInAppReview extends InAppReviewPlatform {
@visibleForTesting
final methodChannel = const MethodChannel('in_app_review');
@override
Future<String?> launchInAppReview({required InAppReviewParams params}) async {
final status = await methodChannel.invokeMethod<String>(
'launchInAppReview',
params.toMap(),
);
return status;
}
@override
Future<String?> launchInMarketReview({
required InAppReviewParams params,
}) async {
final status = await methodChannel.invokeMethod<String>(
'launchInMarketReview',
params.toMap(),
);
return status;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment