NeumorphicShapePainter class abstract

An abstract class that defines the contract for painting Neumorphic shapes. Classes that extend this abstract class should implement the painting logic for Neumorphic shapes.

Implementers

Constructors

NeumorphicShapePainter.new({ShapeBorder shape = const ContinuousRectangleBorder(), double strokeWidth = 0})
Creates a NeumorphicShapePainter.

Properties

hashCode int
The hash code for this object.
no setterinherited
innerPath Path
The inner path of the shape.
getter/setter pair
innerRect Rect
The inner rectangle of the shape.
getter/setter pair
outerPath Path
The outer path of the shape.
getter/setter pair
outerRect Rect
The outer rectangle of the shape.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shape ShapeBorder
The shape of the Neumorphic element.
final
strokeWidth double
The width of the stroke for the shape.
final

Methods

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

Operators

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