RectShape class
RectShape is a class that represents a rectangle shape. it have a build that return a Path that represents the shape. it also have a invert method that return a new RectShape that invert the shape (by adding a rectangle that fill the whole widget and then subtract the shape from it). it also have borderRadius property BorderRadiusGeometry to control the radius of the rectangle (every corner) use to control the .
Constructors
- RectShape({BorderRadiusGeometry borderRadius = BorderRadius.zero})
- RectShape constructor.
Properties
- borderRadius → BorderRadiusGeometry
-
borderRadius is the radius of the rectangle (every corner).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- path → Path Function(Size parentSize)
-
path is a function that takes a Size and returns a Path
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
build(
Size parentSize, {Size? size, Matrix4? transform, AlignmentGeometry? origin = Alignment.center, AlignmentGeometry alignment = Alignment.center, Offset? offset, Offset? translate, double? margin}) → Path -
inherited
-
invert(
) → Shaper -
invert is a function that returns a new Shaper that invert the shape.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited