BubbleShapeBorder class
气泡边框渲染
- Inheritance
-
- Object
- ShapeBorder
- BubbleShapeBorder
Constructors
- BubbleShapeBorder({BubbleDirection direction = BubbleDirection.none, double arrowAngle = 6, double arrowHeight = 6, BubblePosition position = const BubblePosition.center(0), BubbleBoxBorder? border, double arrowQuadraticBezierLength = 0, BorderRadius? radius, double smooth = 1})
Properties
- arrowAngle → double
-
气泡尖角底部长度
final
- arrowHeight → double
-
气泡高度
final
- arrowQuadraticBezierLength → double
-
气泡尖角钝角长度
final
- border → BubbleBoxBorder?
-
边框
final
- dimensions → EdgeInsetsGeometry
-
The widths of the sides of this border represented as an EdgeInsets.
no setteroverride
- direction → BubbleDirection
-
气泡的方向
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- position → BubblePosition
-
尖角定位偏移
final
- preferPaintInterior → bool
-
Reports whether paintInterior is implemented.
no setterinherited
- radius → BorderRadius
-
半径
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- smooth → double
-
三角形底部圆润的角度
final
Methods
-
add(
ShapeBorder other, {bool reversed = false}) → ShapeBorder? -
Attempts to create a new object that represents the amalgamation of
this
border and theother
border.inherited -
copyWith(
{BubbleDirection? direction, double? arrowHeight, double? arrowAngle, double? arrowQuadraticBezierLength, BubblePosition? position, BubbleBoxBorder? border, BorderRadius? radius, double? smooth, double? dashedWidth, double? dashedGap, Gradient? gradient}) → BubbleShapeBorder - copyWith the border
-
getInnerPath(
Rect rect, {TextDirection? textDirection}) → Path -
Create a Path that describes the inner edge of the border.
override
-
getOuterPath(
Rect rect, {TextDirection? textDirection}) → Path -
Create a Path that describes the outer edge of the border.
override
-
lerpFrom(
ShapeBorder? a, double t) → ShapeBorder? -
Linearly interpolates from another ShapeBorder (possibly of another
class) to
this
.inherited -
lerpTo(
ShapeBorder? b, double t) → ShapeBorder? -
Linearly interpolates from
this
to another ShapeBorder (possibly of another class).inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
paint(
Canvas canvas, Rect rect, {TextDirection? textDirection}) → void -
Paints the border within the given Rect on the given Canvas.
override
-
paintInterior(
Canvas canvas, Rect rect, Paint paint, {TextDirection? textDirection}) → void -
Paint a canvas with the appropriate shape.
inherited
-
scale(
double t) → ShapeBorder -
Creates a copy of this border, scaled by the factor
t
.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator +(
ShapeBorder other) → ShapeBorder -
Creates a new border consisting of the two borders on either side of the
operator.
inherited
-
operator ==(
Object other) → bool -
The equality operator.
override