CornerSpec class

📐 CornerSpec

Define the Corner appearance options for each of the four corners in a Shape and their 🔘 radius.

A const constructor CornerSpec() requires all parameters, though radius will default.

const CornerSpecs with pre-set configurations available:

CornerSpec named constructors with pre-filled Corners:

Mixed in types

Constructors

CornerSpec({Corner topLeft = Corner.ROUND, Corner topRight = Corner.ROUND, Corner bottomRight = Corner.ROUND, Corner bottomLeft = Corner.ROUND, BorderRadiusGeometry? radius})
📐 CornerSpec - (Rounded With)
const
CornerSpec.beveledWith({Corner topLeft = Corner.BEVEL, Corner topRight = Corner.BEVEL, Corner bottomRight = Corner.BEVEL, Corner bottomLeft = Corner.BEVEL, BorderRadiusGeometry? radius})
📐 CornerSpec - Beveled With
const
CornerSpec.noneWith({Corner topLeft = Corner.NONE, Corner topRight = Corner.NONE, Corner bottomRight = Corner.NONE, Corner bottomLeft = Corner.NONE, BorderRadiusGeometry? radius})
📐 CornerSpec - None With
const
CornerSpec.squaredWith({Corner topLeft = Corner.SQUARE, Corner topRight = Corner.SQUARE, Corner bottomRight = Corner.SQUARE, Corner bottomLeft = Corner.SQUARE, BorderRadiusGeometry? radius})
📐 CornerSpec - Squared With
const

Properties

asSet Set<Corner>
Return the Set<Corner> of this CornerSpec's potential Corners.
no setter
bottomLeft Corner
📐 Corner
final
bottomRight Corner
📐 Corner
final
hashCode int
The hash code for this object.
no setterinherited
radius BorderRadiusGeometry?
The 🔘 radius impacts the roundedness of default 📐 Corner.ROUND or bevel-depth of 📐 Corner.BEVEL corners.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
topLeft Corner
📐 Corner
final
topRight Corner
📐 Corner
final

Methods

copyWith({Corner? topLeft, Corner? topRight, Corner? bottomRight, Corner? bottomLeft, BorderRadiusGeometry? radius}) CornerSpec
📋 Returns a copy of this CornerSpec with the given properties.
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

lerp(CornerSpec? a, CornerSpec? b, double t) CornerSpec?
Linearly interpolate between two CornerSpec objects.

Constants

BEVELED → const CornerSpec
📐 BEVELED
BEVELED_50 → const CornerSpec
📐 BEVELED_50
BIBEVELED_50 → const CornerSpec
📐 BIBEVELED_50
BIBEVELED_50_FLIP → const CornerSpec
📐 BIBEVELED_50_FLIP
CIRCLE → const CornerSpec
📐 CIRCLE
ROUNDED → const CornerSpec
📐 ROUNDED
ROUNDED_50 → const CornerSpec
📐 ROUNDED_50
SQUARED → const CornerSpec
📐 SQUARED