endAlignment static method

Alignment endAlignment(
  1. EndGradientPosition? endPos
)

Implementation

static Alignment endAlignment(EndGradientPosition? endPos) {
  switch (endPos) {
    case EndGradientPosition.topLeft:
      return Alignment.topLeft;
    case EndGradientPosition.topCenter:
      return Alignment.topCenter;
    case EndGradientPosition.topRight:
      return Alignment.topRight;
    case EndGradientPosition.centerLeft:
      return Alignment.centerLeft;
    case EndGradientPosition.center:
      return Alignment.center;
    case EndGradientPosition.centerRight:
      return Alignment.centerRight;
    case EndGradientPosition.bottomLeft:
      return Alignment.bottomLeft;
    case EndGradientPosition.bottomCenter:
      return Alignment.bottomCenter;
    case EndGradientPosition.bottomRight:
      return Alignment.bottomRight;
    case EndGradientPosition.unknown:
      return Alignment.bottomCenter;
    case null:
      return Alignment.bottomCenter;
  }
}