RegisterCallback typedef

RegisterCallback = void Function(InitializeCustomerResponse? response, Exception? error)

Callback function type for customer registration responses.

Defines the signature for a callback function that handles the result of a customer registration request.

Arguments:

  • response: The InitializeCustomerResponse object if the registration was successful.
  • error: An Exception object if an error occurred.

Implementation

typedef RegisterCallback = void Function(
    InitializeCustomerResponse? response, Exception? error);