toWrapAlignment property

WrapAlignment get toWrapAlignment

Implementation

WrapAlignment get toWrapAlignment {
  if (this == Alignment.topLeft || this == Alignment.centerLeft || this == Alignment.bottomLeft) {
    return WrapAlignment.start;
  } else if (this == Alignment.topRight || this == Alignment.centerRight || this == Alignment.bottomRight) {
    return WrapAlignment.end;
  } else {
    return WrapAlignment.center;
  }
}