FeedbackWrapperConfig class

Configuration class for the FeedbackWrapper widget.

This class holds all the necessary configurations for customizing the feedback flow, including services, UI builders, and callbacks.

Constructors

FeedbackWrapperConfig({required WriteFeedbackPageBuilder writeFeedbackPageBuilder, required Future<void> onPopCallback(BuildContext context)?, required Future<void> onFinalSuccessCallback(BuildContext context)?, required FeedbackService feedbackService, required ConfigsService remoteConfigRepo, required DialogBuilder doYouLoveUsDialogBuilder, required Future<void> onWriteFeedbackCallback(BuildContext context, Widget writeFeedbackPage)})
Creates a new FeedbackWrapperConfig with custom configurations.
FeedbackWrapperConfig.defaultConfig({required FeedbackService feedbackService})
Creates a FeedbackWrapperConfig with default configurations.

Properties

doYouLoveUsDialogBuilder DialogBuilder
Builder function for creating the "Do you love us?" dialog
final
feedbackService FeedbackService
Service responsible for sending feedback to the backend
final
hashCode int
The hash code for this object.
no setterinherited
onFinalSuccessCallback Future<void> Function(BuildContext context)?
Callback function executed when feedback is successfully sent
final
onPopCallback Future<void> Function(BuildContext context)?
Callback function executed when navigation should go back (e.g., closing dialogs or screens). This allows custom navigation handling, especially useful with custom routers like go_router.
final
onWriteFeedbackCallback Future<void> Function(BuildContext context, Widget writeFeedbackPage)
Callback function executed when navigating to the feedback writing screen. This allows custom navigation handling, especially useful with custom routers.
final
remoteConfigRepo ConfigsService
Service for managing remote configurations
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
writeFeedbackPageBuilder WriteFeedbackPageBuilder
Builder function for creating the feedback writing page
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

defaultFinalSuccessDialogCallback(BuildContext context) Future<void>