automaticValuePosition method

  1. @override
ValuePosition automaticValuePosition(
  1. PdfPoint point,
  2. PdfPoint size,
  3. PdfPoint? previous,
  4. PdfPoint? next,
)
override

Implementation

@override
ValuePosition automaticValuePosition(
  PdfPoint point,
  PdfPoint size,
  PdfPoint? previous,
  PdfPoint? next,
) {
  final pos = super.automaticValuePosition(point, size, previous, next);
  if (pos == ValuePosition.right || pos == ValuePosition.left) {
    return ValuePosition.top;
  }

  return pos;
}