toStyle method

SmartCheckoutStyle toStyle()

Implementation

SmartCheckoutStyle toStyle() {
  switch (toLowerCase()) {
    case 'rounded':
      return SmartCheckoutStyle.rounded;
    case 'flat':
      return SmartCheckoutStyle.flat;
    default:
      throw ArgumentError('Unknown style: $this');
  }
}