CustomPosition.topLeft constructor

const CustomPosition.topLeft({
  1. double topOffset = 0,
  2. double leftOffset = 0,
})

Create a position anchored to the top-left with offsets

Implementation

const CustomPosition.topLeft({double topOffset = 0, double leftOffset = 0})
    : top = topOffset,
      left = leftOffset,
      bottom = null,
      right = null;