DPin constructor

const DPin({
  1. required int number,
  2. bool hidden = false,
  3. Color fieldBorderColor = const Color(0xff9c1515),
  4. String buttonText = "Verify",
  5. Color buttonColor = Colors.blue,
  6. Color buttonTextColor = Colors.white,
  7. double buttonWidth = 100.0,
  8. bool withButton = false,
  9. bool underline = false,
  10. required ValueChanged<int> onValueChanged,
})

Implementation

const DPin(
    {

    /// required
    required this.number,

    /// by default false
    this.hidden = false,

    /// by default  Color(0xff9c1515)
    this.fieldBorderColor = const Color(0xff9c1515),

    /// by default Verify
    this.buttonText = "Verify",

    /// by default Colors.blue
    this.buttonColor = Colors.blue,

    /// by default Colors.white
    this.buttonTextColor = Colors.white,

    /// by default 100.0,
    this.buttonWidth = 100.0,

    /// by default false
    this.withButton = false,

    /// by default false
    this.underline = false,

    /// required
    required this.onValueChanged});