containsKey method

Future<bool> containsKey(
  1. String key
)

Returns true if the the platform contains the given key.

Implementation

Future<bool> containsKey(String key) async {
  return (await getKeys(allowList: <String>{key})).isNotEmpty;
}