RoundRectShape class

Inheritance
Mixed-in types

Constructors

RoundRectShape({BorderRadius borderRadius = const BorderRadius.all(Radius.circular(12)), double borderWidth = 0.0, Color borderColor = const Color(0xffffffff)})
Creates a new RoundRectShape with the specified styling options.

Properties

borderColor → Color
final
borderPaint → Paint
final
borderRadius → BorderRadius
final
borderWidth → double
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

build({Rect? rect, double? scale}) → Path
Builds the geometric path for this shape.
override
drawBorder(Canvas canvas, Rect rect) → void
Draws a custom border for the rounded rectangle shape.
override
generatePath({required bool useBezier, required Rect rect}) → Path
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