startAlignment static method

Alignment startAlignment(
  1. StartGradientPosition? start
)

Implementation

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