AbsoluteLayout.centeredVertically constructor

const AbsoluteLayout.centeredVertically({
  1. dynamic left,
  2. dynamic right,
})

Helper constructor for centering vertically only

Implementation

const AbsoluteLayout.centeredVertically({
  this.left,
  this.right,
}) : top = "50%",
     bottom = null,
     translateX = null,
     translateY = "-50%";