calcLeft method

  1. @override
num calcLeft(
  1. Rectangle<num> sourceRect, [
  2. Rectangle<num>? contentRect
])
override

Returns the calculated x position from sourceRect.

If contentRect is provided, it is considered to be the size of the content being aligned if it were visible.

Implementation

@override
num calcLeft(Rectangle sourceRect, [Rectangle? contentRect]) {
  return sourceRect.left + -contentRect!.width;
}