parseEdgeInsetsGeometry function
Implementation
EdgeInsetsGeometry? parseEdgeInsetsGeometry(String? edgeInsetsGeometryString) {
//left,top,right,bottom
if (edgeInsetsGeometryString == null ||
edgeInsetsGeometryString.trim() == '') {
return null;
}
var values = edgeInsetsGeometryString.split(",");
return EdgeInsets.only(
left: double.parse(values[0]),
top: double.parse(values[1]),
right: double.parse(values[2]),
bottom: double.parse(values[3]));
}