attachCustomData static method
attachCustomData
Attaches custom data, which can be viewed in the Gleap dashboard. New data will be merged with existing custom data.
Params
customData
The data to attach to a bug report.
Available Platforms
Android, iOS, Web
Implementation
static Future<void> attachCustomData({
required Map<String, dynamic> customData,
}) async {
if (!kIsWeb && !io.Platform.isAndroid && !io.Platform.isIOS) {
debugPrint(
'attachCustomData is not available for current operating system');
return;
}
await _channel.invokeMethod(
'attachCustomData',
{'customData': customData},
);
}