arriveToCheckPoint static method

Future<void> arriveToCheckPoint(
  1. CheckPoint checkpoint
)

Sends info to Paygilant server that user has arrived to checkpoint -param {Checkpoint} checkPoint

Implementation

static Future<void> arriveToCheckPoint(CheckPoint checkpoint) async {
  try{
    var convertStr = json.encode(checkpoint.getJson());
  await _channel.invokeMethod('arriveToCheckPoint', <String, dynamic>{
    'checkpoint': convertStr,
  });
  } catch (e) {
    throw(e.toString());
  }
}