OtpFieldShapeConfig class

Class for custom field shape configuration

Constructors

OtpFieldShapeConfig({BorderRadius? borderRadius, double? circleRadius, Path customPath(Size size)?, OtpBorderStyle borderStyle = OtpBorderStyle.solid, List<double>? dashPattern, BorderSide borderSideBuilder(Color color, double width)?, BoxDecoration decorationBuilder(Color borderColor, Color backgroundColor, double borderWidth, double borderRadius)?})
const
OtpFieldShapeConfig.forStyle(OtpBorderStyle style)
Creates a configuration for a specific border style
factory

Properties

borderRadius BorderRadius?
Custom border radius for each corner
final
borderSideBuilder BorderSide Function(Color color, double width)?
Border sides configuration
final
borderStyle OtpBorderStyle
Border style configuration
final
circleRadius double?
Custom border radius for circle shape
final
customPath Path Function(Size size)?
Custom path for completely custom shapes
final
dashPattern List<double>?
Custom dash pattern for dashed border style
final
decorationBuilder BoxDecoration Function(Color borderColor, Color backgroundColor, double borderWidth, double borderRadius)?
Create a BoxDecoration for the field
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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