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
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.