Appearance constructor
Appearance({
- DynamicColors? colors,
- Shapes? shapes,
- PrimaryButton? primaryButton,
- String? locale,
- Font? font,
- GPayParams? googlePay,
- ApplePayParams? applePay,
- 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),
};
}