bounds property

Rect get 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;
}
set 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;
}