BorderRadiusGeometry class

Base class for BorderRadius that allows for text-direction aware resolution.

A property or argument of this type accepts classes created either with new BorderRadius.only and its variants, or new BorderRadiusDirectional.only and its variants.

To convert a BorderRadiusGeometry object of indeterminate type into a BorderRadius object, call the resolve method.

Implementers
Annotations
  • @immutable

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. [...]
read-only, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

add(BorderRadiusGeometry other) BorderRadiusGeometry
Returns the sum of two BorderRadiusGeometry objects. [...]
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
Returns a string representation of this object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited

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 ==(dynamic 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. [...]