FeedbackWidget constructor

const FeedbackWidget({
  1. Key? key,
  2. required FeedbackBackend backend,
  3. required String appVersion,
  4. VoidCallback? onSuccess,
  5. void onError(
    1. Object error
    )?,
  6. VoidCallback? onQueued,
  7. int maxMessageLength = 2000,
  8. int maxScreenshots = 5,
  9. List<FeedbackCategoryItem>? categories,
  10. String? submitLabel,
  11. String? successMessage,
  12. String? queuedMessage,
  13. int imageQuality = 60,
  14. double maxImageWidth = 800,
  15. double maxImageHeight = 800,
  16. SpeechRecognitionService? speechService,
  17. Future<Uint8List?> onCaptureScreenshot()?,
  18. bool autoCapture = false,
  19. FeedbackAnalytics? analytics,
  20. FeedbackMetadataCollector? metadataCollector,
  21. FeedbackSessionContext? sessionContextBuilder()?,
  22. bool showRating = false,
  23. bool showNps = false,
  24. FeedbackLocalizations? localizations,
})

Implementation

const FeedbackWidget({
  super.key,
  required this.backend,
  required this.appVersion,
  this.onSuccess,
  this.onError,
  this.onQueued,
  this.maxMessageLength = 2000,
  this.maxScreenshots = 5,
  this.categories,
  this.submitLabel,
  this.successMessage,
  this.queuedMessage,
  this.imageQuality = 60,
  this.maxImageWidth = 800,
  this.maxImageHeight = 800,
  this.speechService,
  this.onCaptureScreenshot,
  this.autoCapture = false,
  this.analytics,
  this.metadataCollector,
  this.sessionContextBuilder,
  this.showRating = false,
  this.showNps = false,
  this.localizations,
});