FPortalSpacing.spacing constructor

const FPortalSpacing.spacing(
  1. double spacing, {
  2. bool diagonal,
})

Creates a FPortalSpacing that adds spacing between the anchors of the portal and widget when they do not overlap.

This is identical to FPortalSpacing.new, allowing dot-shorthand construction.

Implementation

const factory FPortalSpacing.spacing(double spacing, {bool diagonal}) = FPortalSpacing;