toPdfEdgeInsets method

EdgeInsets? toPdfEdgeInsets()

Implementation

pw.EdgeInsets? toPdfEdgeInsets() {
  switch (runtimeType) {
    case const (EdgeInsets):
      return (this as EdgeInsets).toPdfEdgeInsets();
    case const (EdgeInsetsDirectional):
      return (this as EdgeInsetsDirectional).toPdfEdgeInsetsDirectional();
    default:
      debugPrint('Unsupported EdgeInsetsGeometry: $this; defaulting to null');
      return null;
  }
}