clear method

  1. @override
Future<bool> clear()
override

Removes all keys and values in the store where the key starts with 'flutter.'.

This default behavior is for backwards compatibility with older versions of this plugin, which did not support custom prefixes, and instead always used the prefix 'flutter.'.

Implementation

@override
Future<bool> clear() async {
  return (await _kChannel.invokeMethod<bool>('clear'))!;
}