Appearance constructor

Appearance({
  1. DynamicColors? colors,
  2. Shapes? shapes,
  3. PrimaryButton? primaryButton,
  4. String? locale,
  5. Font? font,
  6. GPayParams? googlePay,
  7. ApplePayParams? applePay,
  8. Theme? theme,
})

Implementation

Appearance({
  DynamicColors? colors,
  Shapes? shapes,
  PrimaryButton? primaryButton,
  String? locale,
  Font? font,
  GPayParams? googlePay,
  ApplePayParams? applePay,
  Theme? theme,
}) {
  themeData = {
    'colors': colors?.toJson(),
    'shapes': shapes?.toJson(),
    'primaryButton': primaryButton?.toJson(),
    'locale': locale,
    'typography': font?.toJson(),
    'applePay': applePay?.toJson(),
    'googlePay': googlePay?.toJson(),
    'theme': themeToString(theme),
  };
}