NeumorphicAccentPainter class

A painter that paints a neumorphic accent.

The NeumorphicAccentPainter class is responsible for painting the accent effect in a neumorphic design. It extends NeumorphicShapePainter to provide additional functionality for painting accents.

Inheritance

Constructors

NeumorphicAccentPainter.new({required Color color, required Alignment alignment, required double value, required ShapeBorder shape, required double strokeWidth})
Creates a NeumorphicAccentPainter.

Properties

accentShift double
The shift value for the accent.
final
alignment Alignment
The alignment of the accent.
final
color Color
The color of the accent.
final
hashCode int
The hash code for this object.
no setterinherited
innerPath Path
The inner path of the shape.
getter/setter pairinherited
innerRect Rect
The inner rectangle of the shape.
getter/setter pairinherited
outerPath Path
The outer path of the shape.
getter/setter pairinherited
outerRect Rect
The outer rectangle of the shape.
getter/setter pairinherited
paintObject Paint
The paint object used to paint the accent.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shape ShapeBorder
The shape of the Neumorphic element.
finalinherited
strokeWidth double
The width of the stroke for the shape.
finalinherited
value double
The intensity value of the accent.
getter/setter pair

Methods

calculateShape(Offset offset, Size size) → void
Calculates the shape of the Neumorphic element.
inherited
convertRadiusToSigma(double radius) double
Converts a radius value to a sigma value.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paintAccent(Canvas canvas) → void
Paints the accent on the given canvas.
toString() String
A string representation of this object.
inherited

Operators

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