read method

Future<String> read(
  1. UserNotification userNotification
)

Marks a notification as read.

Parameters:

Returns:

  • A Future that resolves to a string response.

Implementation

Future<String> read(UserNotification userNotification) async {
  return dio
      .post(
        "/read",
        data: userNotification.toJSON(),
      )
      .then(
        (response) => response.data,
      );
}