getLastDeliveredMessageId static method
Future<int?>
getLastDeliveredMessageId(
{ - dynamic onSuccess(
- int lastMessageId
)?,
})
Implementation
static Future<int?> getLastDeliveredMessageId(
{Function(int lastMessageId)? onSuccess}) async {
try {
var result = await channel.invokeMethod('getLastDeliveredMessageId', {});
if (onSuccess != null) onSuccess(result);
return result;
} on PlatformException catch (p) {
_errorCallbackHandler(null, p, null, null);
return null;
} catch (e) {
_errorCallbackHandler(null, null, e, null);
return null;
}
}