hasPreviousMessages method

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

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

Implementation

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