FPortalSpacing constructor

const FPortalSpacing(
  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.

spacing determines the amount of space to apply between the anchors.

diagonal determines whether spacing applies to opposite diagonal corners:

  • When false (default), opposite diagonal corners have no spacing.
  • When true, spacing applies to opposite diagonal corners.

Implementation

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