removeCustomDataForKey static method
removeCustomDataForKey
Removes one key from existing custom data.
Params
key
The key of the attribute
Available Platforms
Android, iOS, Web
Implementation
static Future<void> removeCustomDataForKey({required String key}) async {
if (!kIsWeb && !io.Platform.isAndroid && !io.Platform.isIOS) {
debugPrint(
'removeCustomDataForKey is not available for current operating system');
return;
}
await _channel.invokeMethod(
'removeCustomDataForKey',
{
'key': key,
},
);
}