exportAlignmentDirectional function
Implementation
String exportAlignmentDirectional(AlignmentDirectional alignmentDirectional) {
if (alignmentDirectional == AlignmentDirectional.bottomCenter) {
return "bottomCenter";
}
if (alignmentDirectional == AlignmentDirectional.center) {
return "center";
}
if (alignmentDirectional == AlignmentDirectional.bottomEnd) {
return "bottomEnd";
}
if (alignmentDirectional == AlignmentDirectional.bottomStart) {
return "bottomStart";
}
if (alignmentDirectional == AlignmentDirectional.centerEnd) {
return "centerEnd";
}
if (alignmentDirectional == AlignmentDirectional.centerStart) {
return "centerStart";
}
if (alignmentDirectional == AlignmentDirectional.bottomCenter) {
return "bottomCenter";
}
if (alignmentDirectional == AlignmentDirectional.topCenter) {
return "topCenter";
}
if (alignmentDirectional == AlignmentDirectional.topEnd) {
return "topEnd";
}
if (alignmentDirectional == AlignmentDirectional.topStart) {
return "topStart";
}
return "topStart";
}