getCrossAxisAlignment method

CrossAxisAlignment getCrossAxisAlignment(
  1. String? value
)

Implementation

CrossAxisAlignment getCrossAxisAlignment(String? value) {
  value ??= "default";
  switch (value) {
    case "baseline":
      return CrossAxisAlignment.baseline;
    case "start":
      return CrossAxisAlignment.start;
    case "end":
      return CrossAxisAlignment.end;
    case "stretch":
      return CrossAxisAlignment.stretch;
    default:
      return CrossAxisAlignment.center;
  }
}