getLogs static method

Future<List> getLogs()

Implementation

static Future<List<dynamic>> getLogs() async {
  if (!kIsWeb) {
    if (Platform.isIOS) {
      List<dynamic> reply = await _channel.invokeMethod('getLogs');
      return reply;
    } else {
      String reply = await _channel.invokeMethod('getLogs');
      List<String> splittedReply = reply.split("\n");
      if (splittedReply.length > 0) {
        splittedReply.removeLast();
      }

      return splittedReply;
    }
  } else {
    List<dynamic> reply = await _channel.invokeMethod('getLogs');
    return reply;
  }
}