setJSONAsync function

  1. @Deprecated('Use setValue instead')
Future<bool> setJSONAsync(
  1. String key,
  2. String value
)

add a JSON in SharedPref

Implementation

@Deprecated('Use setValue instead')
Future<bool> setJSONAsync(String key, String value) async {
  return await sharedPreferences.setString(key, jsonEncode(value));
}