KhaltiButton constructor
const
KhaltiButton({
- Key? key,
- required PaymentConfig config,
- required ValueChanged<
PaymentSuccessModel> onSuccess, - required ValueChanged<
PaymentFailureModel> onFailure, - VoidCallback? onCancel,
- List<
PaymentPreference> preferences = PaymentPreference.values, - String? label,
- ButtonStyle? style,
Creates KhaltiButton with the provided properties.
Implementation
const KhaltiButton({
Key? key,
required this.config,
required this.onSuccess,
required this.onFailure,
this.onCancel,
this.preferences = PaymentPreference.values,
this.label,
ButtonStyle? style,
}) : _style = style,
super(key: key);