collectMetaData property

(FutureOr<CustomizableWiredashMetaData> Function(CustomizableWiredashMetaData metaData)?) collectMetaData
final

Enrich the user feedback with custom metadata

This function is called by Wiredash when the user (optional) takes a screenshot or right before submitting feedback.

Mutate the incoming metaData object and add or override values

feedbackOptions: WiredashFeedbackOptions(
  collectMetaData: (metaData) => metaData
    ..userEmail = 'dash@wiredash.com'
    ..custom['isPremium'] = false
    ..custom['nested'] = {'wire': 'dash'},

Implementation

final FutureOr<CustomizableWiredashMetaData> Function(
  CustomizableWiredashMetaData metaData,
)? collectMetaData;