bounds property

Rect bounds

Gets or sets the bounds.

Implementation

Rect get bounds {
  final PdfFieldHelper helper = PdfFieldHelper.getHelper(_helper.field);
  final int backUpIndex = helper.defaultIndex;
  helper.defaultIndex = _helper._collectionIndex;
  final Rect rect = _helper.field.bounds;
  helper.defaultIndex = backUpIndex;
  return rect;
}
void bounds=(Rect value)

Implementation

set bounds(Rect value) {
  if (value.isEmpty) {
    ArgumentError("bounds can't be null/empty");
  }
  final PdfFieldHelper helper = PdfFieldHelper.getHelper(_helper.field);
  final int backUpIndex = helper.defaultIndex;
  helper.defaultIndex = _helper._collectionIndex;
  _helper.field.bounds = value;
  helper.defaultIndex = backUpIndex;
}