InAppReviewPlatform class abstract

The interface that implementations of in_app_review must implement.

Platform implementations should extend this class rather than implement it as in_app_review does not consider newly added methods to be breaking changes. Extending this class (using extends) ensures that the subclass will get the default implementation, while platform implementations that implements this interface will be broken by newly added InAppReviewPlatform methods.

Inheritance
  • Object
  • PlatformInterface
  • InAppReviewPlatform
Implementers

Constructors

InAppReviewPlatform()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

isAvailable() Future<bool>
Checks if the device is able to show a review dialog.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openStoreListing({String? appStoreId, String? microsoftStoreId}) Future<void>
Opens the Play Store on Android, the App Store with a review screen on iOS & MacOS and the Microsoft Store on Windows.
requestReview() Future<void>
Attempts to show the review dialog. It's recommended to first check if this cannot be done via isAvailable. If it is not available then you can open the store listing via openStoreListing.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance InAppReviewPlatform
Platform-specific plugins should set this with their own platform-specific class that extends InAppReviewPlatform when they register themselves.
getter/setter pair