wasRejected function

Future<bool> wasRejected(
  1. String deviceId
)

Implementation

Future<bool> wasRejected(String deviceId) async {
  final SharedPreferences preferences = await sharedPrefs();
  final prefKey = '$deviceId.rejected_notifications';
  return preferences.getBool(prefKey) ?? false;
}