getStackAlignment method

AlignmentDirectional getStackAlignment()

Implementation

AlignmentDirectional getStackAlignment() {
  var stackAlignment = AlignmentDirectional.center;
  switch (alignment) {
    case GTFGridAlignment.start:
      stackAlignment = AlignmentDirectional.centerStart;
      break;
    case GTFGridAlignment.center:
      stackAlignment = AlignmentDirectional.center;
      break;
    case GTFGridAlignment.end:
      stackAlignment = AlignmentDirectional.centerEnd;
      break;
    default:
      stackAlignment = AlignmentDirectional.center;
  }
  return stackAlignment;
}