SBannerPosition class

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

calculateDistanceToFarBannerEdge(Size contentSize) double
Distance from the corner to the furthest edge of the banner along the vertical or horizontal axis (the two distances are equal because the angle is 45 degrees).
calculateDistanceToNearBannerEdge(Size contentSize) double
Distance from the corner to the nearest edge of the banner along the vertical or horizontal axis (the two distances are equal because the angle is 45 degrees).
createBannerPath({required Offset bannerBoundingBoxTopLeft, required Size contentSize}) Path
Creates the path for a banner that fits into the corner of this SBannerPosition.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
positionCanvasToDrawContent(Canvas canvas, Offset paintingOffset, Size contentSize) → void
Translates and rotates the canvas such that the top-left corner of the content is drawn at the desired location on the screen, and that content is angled 45 degrees in the appropriate direction for this banner position.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited