BorderRadius class final
Flutter's BorderRadius: four corners, each circular or elliptical.
JSON (sparse, see fromJson): 8, [16, 8] or [8, [16, 8], 0, 0].
- Annotations
-
- @immutable
Constructors
- BorderRadius.circular(double r)
-
const
- BorderRadius.elliptical(double x, double y)
-
Every corner elliptical:
xacross,ydown (Flutter'sBorderRadius.all(Radius.elliptical(x, y))).const - BorderRadius.only({double topLeft = 0, double topRight = 0, double bottomRight = 0, double bottomLeft = 0, double? topLeftY, double? topRightY, double? bottomRightY, double? bottomLeftY})
-
Each corner's radius: circular, or elliptical when its
Y(vertical) radius is given and differs.const
Properties
- bottomLeft → double
-
Each corner's horizontal radius: its radius, when it's circular.
final
- bottomLeftY → double
-
no setter
- bottomRight → double
-
Each corner's horizontal radius: its radius, when it's circular.
final
- bottomRightY → double
-
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- isCircular → bool
-
Every corner is circular.
no setter
- isUniform → bool
-
no setter
- isZero → bool
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- topLeft → double
-
Each corner's horizontal radius: its radius, when it's circular.
final
- topLeftY → double
-
Each corner's vertical radius (its horizontal one when circular).
no setter
- topRight → double
-
Each corner's horizontal radius: its radius, when it's circular.
final
- topRightY → double
-
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Object -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
fromJson(
Object? json) → BorderRadius -
JSON: a number (every corner circular),
[x, y](every corner elliptical), or[topLeft, topRight, bottomRight, bottomLeft], each a number or[x, y].
Constants
- zero → const BorderRadius