SuperchargeConfigOptionsCallbacks constructor

SuperchargeConfigOptionsCallbacks({
  1. Future<Bool> handleAuthorizeTransaction(
    1. String fromAddress,
    2. String networkCode,
    3. String amount
    )?,
  2. Future<Map<String, dynamic>> handleOrderFeeCalculation(
    1. String asset,
    2. String networkCode,
    3. String amount
    )?,
  3. Future<Map<String, String>> onAddressRequested(
    1. String asset,
    2. String network
    )?,
  4. Future<void> onFailure(
    1. String error,
    2. String networkCode,
    3. String? address
    )?,
  5. Future<void> onOrderCreated(
    1. String orderId,
    2. String type
    )?,
  6. Future<void> onSuccess(
    1. String txHash,
    2. String networkCode,
    3. String? address
    )?,
})

Implementation

SuperchargeConfigOptionsCallbacks({
  this.handleAuthorizeTransaction,
  this.handleOrderFeeCalculation,
  this.onAddressRequested,
  this.onFailure,
  this.onOrderCreated,
  this.onSuccess,
});