toMap method
Converts the theme to a map that can be sent over the method channel.
Implementation
Map<String, String> toMap() {
return {
'cardPreviewColor': ?cardPreviewColor,
'cardPreviewLabelColor': ?cardPreviewLabelColor,
'payPageBackgroundColor': ?payPageBackgroundColor,
'payPageLabelColor': ?payPageLabelColor,
'textFieldLabelColor': ?textFieldLabelColor,
'textFieldPlaceholderColor': ?textFieldPlaceholderColor,
'payPageDividerColor': ?payPageDividerColor,
'payButtonBackgroundColor': ?payButtonBackgroundColor,
'payButtonTitleColor': ?payButtonTitleColor,
'payButtonTitleColorHighlighted': ?payButtonTitleColorHighlighted,
'payButtonActivityIndicatorColor': ?payButtonActivityIndicatorColor,
'payPageTitleColor': ?payPageTitleColor,
};
}