RawGooglePayButton constructor
RawGooglePayButton({
- Key? key,
- required PaymentConfiguration paymentConfiguration,
- VoidCallback? onPressed,
- int cornerRadius = defaultButtonHeight ~/ 2,
- GooglePayButtonTheme theme = GooglePayButtonTheme.dark,
- GooglePayButtonType type = GooglePayButtonType.buy,
- Set<
Factory< gestureRecognizers = const <Factory<OneSequenceGestureRecognizer>>{},OneSequenceGestureRecognizer> >
Creates a Google Pay button widget with the parameters specified.
Implementation
RawGooglePayButton({
super.key,
required final PaymentConfiguration paymentConfiguration,
this.onPressed,
this.cornerRadius = defaultButtonHeight ~/ 2,
this.theme = GooglePayButtonTheme.dark,
this.type = GooglePayButtonType.buy,
this.gestureRecognizers = const <Factory<OneSequenceGestureRecognizer>>{},
}) : _paymentConfiguration = paymentConfiguration,
constraints = const BoxConstraints.tightFor(
width: minimumButtonWidth,
height: defaultButtonHeight,
) {
assert(constraints.debugAssertIsValid());
}