rect property
Gets the rectangle (/Rect) of the field (widget annotation).
Implementation
List<double>? get rect {
if (dictionary.containsKey(PdfNameTokens.rect)) {
final r = dictionary[PdfNameTokens.rect];
if (r is PdfArray && r.values.length >= 4) {
return r.values.map((e) => (e as PdfNum).value.toDouble()).toList();
}
}
return null;
}