getAllWithParameters method

  1. @override
Future<Map<String, Object>> getAllWithParameters(
  1. GetAllParameters parameters
)
override

Returns all key/value pairs persisting in this store that match options.

Implementation

@override
Future<Map<String, Object>> getAllWithParameters(
    GetAllParameters parameters) async {
  final PreferencesFilter filter = parameters.filter;
  final List<String>? allowListAsList = filter.allowList?.toList();
  return await _kChannel.invokeMapMethod<String, Object>(
        'getAllWithParameters',
        <String, dynamic>{
          'prefix': filter.prefix,
          'allowList': allowListAsList
        },
      ) ??
      <String, Object>{};
}