validateAlign function
Implementation
bool validateAlign(String? align) {
if (align.equals('left')) return true;
if (align.equals('justify')) return true;
if (align.equals('center')) return true;
if (align.equals('right')) return true;
return false;
}