withdraw static method

Future withdraw({
  1. int? amount,
})

Implementation

static Future<dynamic> withdraw({int? amount}) async {
  final args = {'amount': amount};
  final rs = await _channel.invokeMethod('withdraw', args);
  if (Platform.isAndroid && rs is String) {
    return jsonDecode(rs);
  }
  return rs;
}