collectMetaData property

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

Enrich the promoter score survey answer with custom metadata

This function is called by Wiredash when the user submits the promoter score survey

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;