markReadAllNotification method

  1. @override
Future<Result<void>> markReadAllNotification(
  1. String deviceToken
)
inherited

Implementation

@override
Future<Result<void>> markReadAllNotification(String deviceToken) => result(() async {
      VoidResult result = await _notificationApi.markReadAllNotification(getAppName(), deviceToken);
      if (!result.isSuccess) {
        throw Exception(result.message);
      }
      return true;
    });