TokenResponse constructor

const TokenResponse({
  1. Token? token,
  2. StripeError? error,
})

Implementation

const factory TokenResponse({
  /// If not null, a Token was created successfully.
  Token? token,

  /// If not null, an error occurred.
  /// This includes client-side validation errors
  StripeError? error,
}) = _TokenResponse;