getUserLastSeenTime method

  1. @override
Future<String?> getUserLastSeenTime(
  1. String jid
)
override

Implementation

@override
Future<String?> getUserLastSeenTime(String jid) async {
  String? response;
  try {
    response = await mirrorFlyMethodChannel
        .invokeMethod<String>('getUserLastSeenTime', {"jid": jid});
    debugPrint("getUserLastSeenTime Result ==> $response");
    return response;
  } on PlatformException catch (e) {
    debugPrint("Platform Exception ===> $e");
    rethrow;
  } on Exception catch (error) {
    debugPrint("Exception ==> $error");
    rethrow;
  }
}