handleTrackCharge method

void handleTrackCharge(
  1. MethodCall call
)

Implementation

void handleTrackCharge(MethodCall call) {
  Map<Object?, Object?> args = call.arguments as Map<Object?, Object?>;
  dynamic properties = args['properties'];
  double amount = args['amount'] as double;
  people_track_charge(amount, js.jsify(properties ?? {}));
}