cancelNotification static method

Future<bool> cancelNotification()

Implementation

static Future<bool> cancelNotification() async {
  try {
    await _notifications.cancel(1);
    return true;
  } catch (e) {
    return false;
  }
}