FeedbackButton constructor

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

Implementation

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