getFirstNotification method

Future<Notification> getFirstNotification()

Returns the first, topmost visible notification.

Notification shade has to be opened with openNotifications.

Implementation

Future<Notification> getFirstNotification() async {
  final response = await _wrapRequest(
    'getFirstNotification',
    () => _client.getNotifications(
      GetNotificationsRequest(),
    ),
  );

  return response.notifications.first;
}