Retrieves the count of read inbox messages for the device.
Syntax
Future<int?> getReadMessageCount()
Returns
Future<int?>- Returns the number of read messages, ornullif the count cannot be determined.
Example
int? readCount = await SfmcSdk.getReadMessageCount();
if (readCount != null) {
print('Read messages: $readCount');
} else {
print('Unable to get read message count');
}