removeCustomDataForKey static method

Future<void> removeCustomDataForKey({
  1. required String key,
})

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,
    },
  );
}