SentryFeedbackWidget constructor

SentryFeedbackWidget({
  1. Key? key,
  2. SentryId? associatedEventId,
  3. Hub? hub,
  4. String title = 'Report a Bug',
  5. String nameLabel = 'Name',
  6. String namePlaceholder = 'Your Name',
  7. String emailLabel = 'Email',
  8. String emailPlaceholder = 'your.email@example.org',
  9. String messageLabel = 'Description',
  10. String messagePlaceholder = 'What\'s the bug? What did you expect?',
  11. String submitButtonLabel = 'Send Bug Report',
  12. String cancelButtonLabel = 'Cancel',
  13. String validationErrorLabel = 'Can\'t be empty',
  14. String isRequiredLabel = '(required)',
  15. bool isNameRequired = false,
  16. bool isEmailRequired = false,
  17. 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();