doTransaction method
Future<void>
doTransaction({
- required String amount,
- required String tip,
- required double latitude,
- required double longitude,
- 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);
}
}