route static method
Route<String?>
route({
- PaymentMethodStore? paymentMethodStore,
- Stripe? stripe,
- CardForm? form,
- String title = _defaultTitle,
Implementation
static Route<String?> route(
{PaymentMethodStore? paymentMethodStore, Stripe? stripe, CardForm? form, String title = _defaultTitle}) {
return MaterialPageRoute(
builder: (context) => AddPaymentMethodScreen(
paymentMethodStore: paymentMethodStore ?? PaymentMethodStore.instance,
stripe: stripe ?? Stripe.instance,
title: title,
),
);
}