clearWithParameters method

  1. @override
Future<bool> clearWithParameters(
  1. ClearParameters parameters
)
override

Removes all keys and values in the store that match options.

Implementation

@override
Future<bool> clearWithParameters(ClearParameters parameters) async {
  final PreferencesFilter filter = parameters.filter;
  return (await _kChannel.invokeMethod<bool>(
    'clearWithParameters',
    <String, dynamic>{
      'prefix': filter.prefix,
      'allowList': filter.allowList?.toList(),
    },
  ))!;
}