resolvedMargin method

EdgeInsets resolvedMargin()

resolvedMargin API.

Implementation

EdgeInsets resolvedMargin() {
  final EdgeInsetsGeometry? inset = margin;
  if (inset != null) {
    return inset.resolve(textDirection ?? TextDirection.ltr);
  }
  final PdfPageFormat format = resolvedFormat;
  return EdgeInsets.fromLTRB(
    format.marginLeft,
    format.marginTop,
    format.marginRight,
    format.marginBottom,
  );
}