getMessages method

Future<Object> getMessages({
  1. int skip = 0,
})

Implementation

Future<Object> getMessages({int skip = 0}) {
  var completer = Completer<Object>();
  final eventId = Uuid().v4();
  postMessage("getMessages", {"eventId": eventId, "skip": skip});
  _promiseBus[eventId] = completer;
  return completer.future;
}