validateAlign function

bool validateAlign(
  1. String? align
)

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;
}