setIntAsync function

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

add a Int in SharedPref

Implementation

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