padSVH property

EdgeInsets padSVH

creates symmetric padding

0th element of list is taken as vertical and 1st element as horizontal.

Implementation

EdgeInsets get padSVH {
  assert(this.length == 2, "List should have exactly 2 elements");
  return EdgeInsets.symmetric(
    vertical: this[0].toDouble(),
    horizontal: this[1].toDouble(),
  );
}