OtpDecoration constructor
const
OtpDecoration({
- Color borderColor = Colors.white12,
- Color focusBorderColor = const Color(0xFF1976D2),
- Color successBorderColor = const Color(0xFF2E7D32),
- Color errorBorderColor = const Color(0xFFD32F2F),
- double borderWidth = 1.5,
- double focusBorderWidth = 2.0,
- double borderRadius = 12.0,
- Color? boxColor,
- Color focusedBoxColor = Colors.white,
- List<
BoxShadow> ? boxShadow, - List<
BoxShadow> ? focusedBoxShadow,
Implementation
const OtpDecoration({
this.borderColor = Colors.white12,
this.focusBorderColor = const Color(0xFF1976D2),
this.successBorderColor = const Color(0xFF2E7D32),
this.errorBorderColor = const Color(0xFFD32F2F),
this.borderWidth = 1.5,
this.focusBorderWidth = 2.0,
this.borderRadius = 12.0,
this.boxColor,
this.focusedBoxColor = Colors.white,
this.boxShadow,
this.focusedBoxShadow,
});