toMap method
Converts the button style to a map for the MethodChannel.
Implementation
Map<String, dynamic> toMap() {
return {
'showButton': showButton,
'buttonText': text,
'buttonBackgroundColor': backgroundColor.toARGB32(),
'buttonTextColor': textColor.toARGB32(),
'buttonFontSize': fontSize,
};
}