reset method

Future<bool> reset ()

Reset FawryPay SDK Payment.

Returns true if it was rest well. Throws exception if not.

Implementation

Future<bool> reset() async {
  try {
    return await _channel.invokeMethod(_METHOD_RESET);
  } on PlatformException catch (e) {
    if (e.code == _ERROR_RESET)
      throw "Error Occurred: Code: $_ERROR_RESET. Message: ${e.message}. Details: SDK Reset SDK Error";
    throw "Error Occurred: Code: ${e.code}. Message: ${e.message}. Details: ${e.details}";
  } catch (e) {
    throw "Error Occurred: $e";
  }
}