An interface for computing the spacing between a child and its portal.
Constructors
- FPortalSpacing.new(double spacing, {bool diagonal})
-
Creates a FPortalSpacing that applies a fixed spacing between the child and its portal when they do not overlap.
constfactory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolve(
Alignment child, Alignment portal) → Offset -
Computes spacing between the
child
's anchor and theportal
's anchor, returning an offset by which to shift the portal. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- zero → const FPortalSpacing
- A FPortalSpacing that does not apply any spacing.