setRejected function

Future<void> setRejected(
  1. String deviceId,
  2. bool value
)

Implementation

Future<void> setRejected(String deviceId, bool value) async {
  final SharedPreferences preferences = await sharedPrefs();
  final prefKey = '$deviceId.rejected_notifications';
  preferences.setBool(prefKey, value);
}