margin property

EdgeInsets? margin

Implementation

EdgeInsets? get margin {
  if (_margin != null) {
    if (mustRotate) {
      return EdgeInsets.fromLTRB(
          _margin!.bottom, _margin!.left, _margin!.top, _margin!.right);
    } else {
      return _margin;
    }
  }

  if (mustRotate) {
    return EdgeInsets.fromLTRB(pageFormat.marginBottom, pageFormat.marginLeft,
        pageFormat.marginTop, pageFormat.marginRight);
  } else {
    return EdgeInsets.fromLTRB(pageFormat.marginLeft, pageFormat.marginTop,
        pageFormat.marginRight, pageFormat.marginBottom);
  }
}