toMap method
Implementation
Map<String, dynamic> toMap() {
return {
'position': _positionToString(),
'backgroundStyle': _backgroundStyleToString(),
'cornerRadius': cornerRadius,
'respectsSafeArea': respectsSafeArea,
'allowsOrientationChanges': allowsOrientationChanges,
'backgroundColor': backgroundColor?.value,
'backgroundOpacity': backgroundOpacity,
'customPosition': customPosition != null
? {
'left': customPosition!.left,
'top': customPosition!.top,
'right': customPosition!.right,
'bottom': customPosition!.bottom,
}
: null,
};
}