transfer static method

Future transfer({
  1. int? amount,
  2. String note = "",
})

Implementation

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