PaymentMethodSelector constructor

PaymentMethodSelector({
  1. required OnPaymentMethodSelected onChanged,
  2. PaymentMethodStore? paymentMethodStore,
  3. String? initialPaymentMethodId,
  4. SelectorType selectorType = SelectorType.radioButton,
  5. Key? key,
  6. bool selectFirstByDefault = false,
})

Implementation

PaymentMethodSelector({
  required this.onChanged,
  PaymentMethodStore? paymentMethodStore,
  this.initialPaymentMethodId,
  this.selectorType = SelectorType.radioButton,
  Key? key,
  this.selectFirstByDefault = false,
})  : _paymentMethodStore = paymentMethodStore ?? PaymentMethodStore.instance,
      super(key: key);