toMap method
dynamic
toMap()
Convert the edge insets to DynamicMap
.
Implementation
DynamicMap toMap() {
if (this == null) {
return <String, dynamic>{};
}
final edgeInsets = this!.resolve(TextDirection.ltr);
return <String, dynamic>{
"left": edgeInsets.left,
"right": edgeInsets.right,
"top": edgeInsets.top,
"bottom": edgeInsets.bottom,
};
}