DisplayCornerRadii class
A set of radii for the four corners of the display.
This class represents the curvature of the display corners. The radii values are defined in physical pixels.
If a corner is square (not rounded), the radius is 0.0.
This is currently populated only on Android API 31+.
Constructors
- DisplayCornerRadii({required double topLeft, required double topRight, required double bottomRight, required double bottomLeft})
-
Creates a DisplayCornerRadii.
const
Properties
- bottomLeft → double
-
The radius of the bottom-left corner of the display, in physical pixels.
final
- bottomRight → double
-
The radius of the bottom-right corner of the display, in physical pixels.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- topLeft → double
-
The radius of the top-left corner of the display, in physical pixels.
final
- topRight → double
-
The radius of the top-right corner of the display, in physical pixels.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override