FeedbackButton constructor
const
FeedbackButton({ - Key? key,
- required FeedbackBackend backend,
- required String appVersion,
- Widget? child,
- VoidCallback? onSuccess,
- void onError(
- Object
)?,
- VoidCallback? onQueued,
- List<FeedbackCategoryItem>? categories,
- int maxMessageLength = 2000,
- int maxScreenshots = 5,
- String? submitLabel,
- String? successMessage,
- String? queuedMessage,
- int imageQuality = 60,
- double maxImageWidth = 800,
- double maxImageHeight = 800,
- SpeechRecognitionService? speechService,
- Future<Uint8List?> onCaptureScreenshot()?,
- bool autoCapture = false,
- FeedbackThemeData? theme,
- FeedbackAnalytics? analytics,
- FeedbackMetadataCollector? metadataCollector,
- FeedbackSessionContext? sessionContextBuilder()?,
- bool showRating = false,
- bool showNps = false,
- FeedbackLocalizations? localizations,
- 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,
});