getWrapAlignment method

WrapAlignment getWrapAlignment(
  1. String? value
)

Implementation

WrapAlignment getWrapAlignment(String? value) {
  value ??= "default";

  switch (value) {
    case "center":
      return WrapAlignment.center;
    case "end":
      return WrapAlignment.end;
    case "spaceEvenly":
      return WrapAlignment.spaceEvenly;
    case "spaceAround":
      return WrapAlignment.spaceAround;
    case "spaceBetween":
      return WrapAlignment.spaceBetween;
    default:
      return WrapAlignment.start;
  }
}