vspace method

SizedBox vspace([
  1. int x = 1
])

Implementation

SizedBox vspace([int x = 1]) {
  switch (x) {
    case 0:
      return const SizedBox(height: 0);
    case 1:
      return _v1 ??= SizedBox(height: spaceUnit);
    case 2:
      return _v2 ??= SizedBox(height: spaceUnit * 2);
    case 3:
      return _v3 ??= SizedBox(height: spaceUnit * 3);
    case 4:
      return _v4 ??= SizedBox(height: spaceUnit * 4);
    default:
      return SizedBox(height: spaceUnit * x);
  }
}