postFeedback method
Posts user feedback to the Appero backend.
Call this method when the user submits feedback through your UI.
rating - Numeric rating from 1-5
feedback - Optional text feedback from the user
Returns true if the feedback was successfully posted, false otherwise.
Throws PlatformException if posting fails.
Example:
final success = await Appero.instance.postFeedback(
rating: 5,
feedback: 'Great app!',
);
Implementation
Future<bool> postFeedback({
required int rating,
String? feedback,
}) async {
final result = await _methodChannel.invokeMethod('postFeedback', {
'rating': rating,
'feedback': feedback,
});
return result as bool;
}