onWriteFeedbackCallback property

Future<void> Function(BuildContext context, Widget writeFeedbackPage) onWriteFeedbackCallback
final

Callback function executed when navigating to the feedback writing screen. This allows custom navigation handling, especially useful with custom routers.

Example with go_router:

onWriteFeedbackCallback: (context, page) async => context.push('/feedback')

Example with Navigator:

onWriteFeedbackCallback: (context, page) async {
  await Navigator.of(context).push(MaterialPageRoute(builder: (_) => page));
}

Implementation

final Future<void> Function(BuildContext context, Widget writeFeedbackPage)
onWriteFeedbackCallback;