GRectCornerRadius class
Represents a set of corner radii for a rounded rectangle. This class is used internally to build a rounded rectangle by specifying different radii for each of its corners.
Constructors
- GRectCornerRadius([double topLeft = 0, double topRight = 0, double bottomRight = 0, double bottomLeft = 0])
- Creates a new GRectCornerRadius instance.
Properties
- bottomLeft ↔ double
-
The radius of the bottom-left corner of the rectangle.
getter/setter pair
- bottomRight ↔ double
-
The radius of the bottom-right corner of the rectangle.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isNotEmpty → bool
-
Returns true if any of the corner radii are not equal to zero, false
otherwise.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- topLeft ↔ double
-
The radius of the top-left corner of the rectangle.
getter/setter pair
- topRight ↔ double
-
The radius of the top-right corner of the rectangle.
getter/setter pair
Methods
-
allTo(
double radius) → void -
Sets all the corner
radius
to the same value. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setLeftRight(
double left, double right) → void -
Sets the radii for the
left
andright
corners. -
setTo(
[double topLeft = 0, double topRight = 0, double bottomRight = 0, double bottomLeft = 0]) → void - Sets the radius for each of the corners individually.
-
setTopBottom(
double top, double bottom) → void -
Sets the radii for the
top
andbottom
corners. -
toNative(
GRect rect) → RRect - Returns a native Flutter RRect instance based on this GRectCornerRadius instance.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited