removeUserData static method

Future<void> removeUserData(
  1. String key
)

Removes the String corresponding to a key set with setUserData.

Method might throw Exception.

Implementation

static Future<void> removeUserData(
  String key,
) async {
  try {
    await channel.invokeMethod<void>('removeUserData', key);
  } on PlatformException catch (e) {
    throw Exception(e.details);
  }
}