toMap method
Converts the progress style to a map for the MethodChannel.
Implementation
Map<String, dynamic> toMap() {
return {
'showProgressBar': showProgressBar,
'progressBarColor': color.toARGB32(),
'progressBarHeight': height,
};
}