toMap method
Implementation
Map<String, dynamic> toMap() {
return {
"enabled": enabled,
"color": color?.toHex(),
"backgroundColor": backgroundColor?.toHex(),
"allowWithNoScrollbar": allowWithNoScrollbar,
"distanceToTriggerSync": distanceToTriggerSync,
"slingshotDistance": slingshotDistance,
"size": size?.toNativeValue(),
"attributedTitle": attributedTitle?.toMap() ?? {},
};
}