getAllFromDictionary method

  1. @override
Future<Map<String, Object>> getAllFromDictionary(
  1. List<String> keys
)
override

Returns all key/value pairs persisted in this store.

Implementation

@override
Future<Map<String, Object>> getAllFromDictionary(List<String> keys) async {
  final Map<String, Object>? preferences =
      await _kChannel.invokeMapMethod<String, Object>(
    'getAllFromDictionary',
    <String, Object>{'keys': keys},
  );

  if (preferences == null) return <String, Object>{};

  return preferences;
}