toAlignment method

Alignment toAlignment()

Implementation

Alignment toAlignment() {
  final self = this;
  switch (self) {
    case MainAxisAlignment.start:
      return Alignment.centerLeft;
    case MainAxisAlignment.end:
      return Alignment.centerRight;
    case MainAxisAlignment.center:
      return Alignment.center;
    case MainAxisAlignment.spaceBetween:
      return Alignment.center;
    case MainAxisAlignment.spaceAround:
      return Alignment.center;
    case MainAxisAlignment.spaceEvenly:
      return Alignment.center;
    default:
      return Alignment.center;
  }
}