exportBoxFit function
Implementation
String exportBoxFit(BoxFit? boxFit) {
String rt = "contain";
if (boxFit == BoxFit.fill) {
rt = "fill";
}
if (boxFit == BoxFit.cover) {
rt = "cover";
}
if (boxFit == BoxFit.fitWidth) {
rt = "fitWidth";
}
if (boxFit == BoxFit.fitHeight) {
rt = "fitHeight";
}
if (boxFit == BoxFit.none) {
rt = "none";
}
if (boxFit == BoxFit.scaleDown) {
rt = "scaleDown";
}
return rt;
}