getUserFeedback method
Future<Uri?>
getUserFeedback({
- String title = "Feedback",
- String hint = "Please insert your feedback here and click send",
- String subjectHint = "Subject…",
- String messageHint = "Your feedback…",
- String sendButtonText = "Send",
- String cancelButtonText = "Close",
override
Implementation
Future<Uri?> getUserFeedback(
{String title = "Feedback",
String hint = "Please insert your feedback here and click send",
String subjectHint = "Subject…",
String messageHint = "Your feedback…",
String sendButtonText = "Send",
String cancelButtonText = "Close"}) {
return promiseToFuture(
bugfender_web.getUserFeedback(bugfender_web.UserFeedbackOptions(
title: title,
hint: hint,
subjectPlaceholder: subjectHint,
feedbackPlaceholder: messageHint,
submitLabel: sendButtonText,
))).then((value) {
var result = (value as bugfender_web.UserFeedbackResult);
if (result.isSent) {
return Uri.parse(result.feedbackURL!);
} else {
return null;
}
});
}