route static method

Route<String?> route({
  1. PaymentMethodStore? paymentMethodStore,
  2. Stripe? stripe,
  3. CardForm? form,
  4. 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,
    ),
  );
}