SentryFeedbackWidget constructor
SentryFeedbackWidget({
- Key? key,
- SentryId? associatedEventId,
- Hub? hub,
- String title = 'Report a Bug',
- String nameLabel = 'Name',
- String namePlaceholder = 'Your Name',
- String emailLabel = 'Email',
- String emailPlaceholder = 'your.email@example.org',
- String messageLabel = 'Description',
- String messagePlaceholder = 'What\'s the bug? What did you expect?',
- String submitButtonLabel = 'Send Bug Report',
- String cancelButtonLabel = 'Cancel',
- String validationErrorLabel = 'Can\'t be empty',
- String isRequiredLabel = '(required)',
- bool isNameRequired = false,
- bool isEmailRequired = false,
- SentryAttachment? screenshot,
Implementation
SentryFeedbackWidget({
super.key,
this.associatedEventId,
Hub? hub,
this.title = 'Report a Bug',
this.nameLabel = 'Name',
this.namePlaceholder = 'Your Name',
this.emailLabel = 'Email',
this.emailPlaceholder = 'your.email@example.org',
this.messageLabel = 'Description',
this.messagePlaceholder = 'What\'s the bug? What did you expect?',
this.submitButtonLabel = 'Send Bug Report',
this.cancelButtonLabel = 'Cancel',
this.validationErrorLabel = 'Can\'t be empty',
this.isRequiredLabel = '(required)',
this.isNameRequired = false,
this.isEmailRequired = false,
this.screenshot,
}) : assert(associatedEventId != const SentryId.empty()),
_hub = hub ?? HubAdapter();