OtpDecoration constructor

const OtpDecoration({
  1. Color borderColor = Colors.white12,
  2. Color focusBorderColor = const Color(0xFF1976D2),
  3. Color successBorderColor = const Color(0xFF2E7D32),
  4. Color errorBorderColor = const Color(0xFFD32F2F),
  5. double borderWidth = 1.5,
  6. double focusBorderWidth = 2.0,
  7. double borderRadius = 12.0,
  8. Color? boxColor,
  9. Color focusedBoxColor = Colors.white,
  10. List<BoxShadow>? boxShadow,
  11. 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,
});