hasNextMessages method

  1. @override
Future<bool> hasNextMessages()
override

This method is used to check if there is any next messages.

Implementation

@override
Future<bool> hasNextMessages() async {
  bool hasNextMessages;
  try {
    hasNextMessages =
        await mirrorFlyMethodChannel.invokeMethod('hasNextMessages');
    LogMessage.d("hasNextMessages", "$hasNextMessages");
    return hasNextMessages;
  } on PlatformException catch (e) {
    LogMessage.d("Platform Exception =", " $e");
    rethrow;
  } on Exception catch (error) {
    LogMessage.d("Exception ", " $error");
    rethrow;
  }
}