doTransaction method

  1. @override
Future<void> doTransaction({
  1. required String amount,
  2. required String tip,
  3. required double latitude,
  4. required double longitude,
  5. required String description,
})
override

Implementation

@override
Future<void> doTransaction(
    {required String amount,
    required String tip,
    required double latitude,
    required double longitude,
    required String description}) async {
  try {
    await methodChannel.invokeMethod('doTransaction', {
      'amount': amount,
      'tip': tip,
      'latitude': latitude,
      'longitude': longitude,
      'description': description,
    });
  } on PlatformException catch (exception) {
    print(exception);
  }
}