createOptions method

CardElementOptions createOptions()

Implementation

js.CardElementOptions createOptions() {
  final textColor = widget.style?.textColor;
  return js.CardElementOptions(
    style: {
      'base': {
        if (textColor != null) 'color': '${colorToCssString(textColor)}'
      }
    },
    hidePostalCode: !widget.enablePostalCode,
  );
}