deposit static method

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

Implementation

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