getAlignment method
Implementation
Alignment? getAlignment(String? value) {
if (value == null) return null;
switch (value) {
case "topLeft":
return Alignment.topLeft;
case "topCenter":
return Alignment.topCenter;
case "topRight":
return Alignment.topRight;
case "bottomLeft":
return Alignment.bottomLeft;
case "bottomCenter":
return Alignment.bottomCenter;
case "bottomRight":
return Alignment.bottomRight;
case "centerLeft":
return Alignment.centerLeft;
case "center":
return Alignment.center;
case "centerRight":
return Alignment.centerRight;
default:
return null;
}
}