BorderRadiusGeometry class abstract
Base class for BorderRadius that allows for text-direction aware resolution.
A property or argument of this type accepts classes created either with BorderRadius.only and its variants, or BorderRadiusDirectional.only and its variants.
To convert a BorderRadiusGeometry object of indeterminate type into a BorderRadius object, call the resolve method.
- Implementers
- Annotations
Constructors
- BorderRadiusGeometry()
-
Abstract const constructor. This constructor enables subclasses to provide
const constructors so that they can be used in const expressions.
const
- BorderRadiusGeometry.all(Radius radius)
-
Creates a BorderRadius where all radii are
radius
.constfactory - BorderRadiusGeometry.circular(double radius)
-
Creates a BorderRadius where all radii are Radius.circular(radius).
factory
- BorderRadiusGeometry.directional({Radius topStart, Radius topEnd, Radius bottomStart, Radius bottomEnd})
-
Creates a BorderRadiusDirectional with only the given non-zero values.
constfactory
- BorderRadiusGeometry.horizontal({Radius? left, Radius? right, Radius? start, Radius? end})
-
Creates a horizontally symmetrical border radius.
factory
- BorderRadiusGeometry.only({Radius topLeft, Radius topRight, Radius bottomLeft, Radius bottomRight})
-
Creates a BorderRadius with only the given non-zero values.
constfactory
- BorderRadiusGeometry.vertical({Radius top, Radius bottom})
-
Creates a vertically symmetric BorderRadius where the top and bottom
sides of the rectangle have the same radii.
constfactory
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
add(
BorderRadiusGeometry other) → BorderRadiusGeometry - Returns the sum of two BorderRadiusGeometry objects.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolve(
TextDirection? direction) → BorderRadius - Convert this instance into a BorderRadius, so that the radii are expressed for specific physical corners (top-left, top-right, etc) rather than in a direction-dependent manner.
-
subtract(
BorderRadiusGeometry other) → BorderRadiusGeometry - Returns the difference between two BorderRadiusGeometry objects.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator %(
double other) → BorderRadiusGeometry - Computes the remainder of each corner by the given factor.
-
operator *(
double other) → BorderRadiusGeometry - Scales the BorderRadiusGeometry object's corners by the given factor.
-
operator /(
double other) → BorderRadiusGeometry - Divides the BorderRadiusGeometry object's corners by the given factor.
-
operator ==(
Object other) → bool -
The equality operator.
override
-
operator unary-(
) → BorderRadiusGeometry - Returns the BorderRadiusGeometry object with each corner radius negated.
-
operator ~/(
double other) → BorderRadiusGeometry - Integer divides the BorderRadiusGeometry object's corners by the given factor.
Static Methods
-
lerp(
BorderRadiusGeometry? a, BorderRadiusGeometry? b, double t) → BorderRadiusGeometry? - Linearly interpolate between two BorderRadiusGeometry objects.
Constants
- zero → const BorderRadiusGeometry
- A BorderRadius with all zero radii.