FLerpBorderRadius class

A BorderRadius that lerps between 0 and a radius when a rectangle is smaller than radius * 3.

Inheritance

Constructors

FLerpBorderRadius.all(Radius radius, {required double min})
Creates a FLerpBorderRadius.
const
FLerpBorderRadius.circular(double radius)
Creates a FLerpBorderRadius.

Properties

bottomLeft Radius
The bottom-left Radius.
finalinherited
bottomRight Radius
The bottom-right Radius.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
topLeft Radius
The top-left Radius.
finalinherited
topRight Radius
The top-right Radius.
finalinherited

Methods

add(BorderRadiusGeometry other) BorderRadiusGeometry
Returns the sum of two BorderRadiusGeometry objects.
inherited
copyWith({Radius? topLeft, Radius? topRight, Radius? bottomLeft, Radius? bottomRight}) BorderRadius
Returns a copy of this BorderRadius with the given fields replaced with the new values.
inherited
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.
inherited
subtract(BorderRadiusGeometry other) BorderRadiusGeometry
Returns the difference between two BorderRadiusGeometry objects.
inherited
toRRect(Rect rect) RRect
Creates an RRect from the current border radius and a Rect.
override
toRSuperellipse(Rect rect) RSuperellipse
Creates an RSuperellipse from the current border radius and a Rect.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator %(double other) BorderRadius
Computes the remainder of each corner by the given factor.
inherited
operator *(double other) BorderRadius
Scales each corner of the BorderRadius by the given factor.
inherited
operator +(BorderRadius other) BorderRadius
Returns the sum of two BorderRadius objects.
inherited
operator -(BorderRadius other) BorderRadius
Returns the difference between two BorderRadius objects.
inherited
operator /(double other) BorderRadius
Divides each corner of the BorderRadius by the given factor.
inherited
operator ==(Object other) bool
The equality operator.
inherited
operator unary-() BorderRadius
Returns the BorderRadius object with each corner negated.
inherited
operator ~/(double other) BorderRadius
Integer divides each corner of the BorderRadius by the given factor.
inherited