UpperNipMessageClipperTwo class
UpperNipMessageClipperTwo is the clipper which extends the CustomClipper and clips the container's all four corners but one of the top corners is nipped.
MessageType is the parameter which decides the type of message MessageType.send for sender or MessageType.receive for receiver.
bubbleRadius is the parameter which decides the radius of the bubble
container.
Default value of bubble radius is 12
.
nipHeight is the parameter which decides the height of the nip.
Default value of bubble radius is 12
.
nipWidth is the parameter which decides the width of the nip.
Default value of bubble radius is 16
.
nipRadius is the parameter which decides the radius of the nip.
Default value of bubble radius is 16
.
The getClip method is called whenever the custom clip needs to be updated.
The shouldReclip method is called when a new instance of the class is provided, to check if the new instance actually represents different information.
- Inheritance
-
- Object
- Listenable
- CustomClipper<
Path> - UpperNipMessageClipperTwo
Constructors
- UpperNipMessageClipperTwo(MessageType type, {double bubbleRadius = 12, double nipHeight = 12, double nipWidth = 16, double nipRadius = 2})
Properties
- bubbleRadius → double
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- nipHeight → double
-
final
- nipRadius → double
-
final
- nipWidth → double
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → MessageType
-
final
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be notified when it is time to reclip.
inherited
-
getApproximateClipRect(
Size size) → Rect -
Returns an approximation of the clip returned by getClip, as
an axis-aligned Rect. This is used by the semantics layer to
determine whether widgets should be excluded.
inherited
-
getClip(
Size size) → Path -
Returns a description of the clip given that the render object being
clipped is of the given size.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that the
object notifies when it is time to reclip.
inherited
-
shouldReclip(
covariant CustomClipper oldClipper) → bool -
Called whenever a new instance of the custom clipper delegate class is
provided to the clip object, or any time that a new clip object is created
with a new instance of the custom clipper delegate class (which amounts to
the same thing, because the latter is implemented in terms of the former).
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited