MPinput constructor

MPinput({
  1. Key? key,
  2. Key? mKey,
  3. String? validator(
    1. String? valid
    )?,
  4. TextStyle? titleStyle,
  5. TextStyle? inputStyle,
  6. Color? activeColor,
  7. Color? unActiveColor,
  8. TextEditingController? controller,
  9. TextInputAction? textInputAction,
  10. FocusNode? focusNode,
  11. int length = 5,
  12. Color? fillColor,
  13. String? lableText,
  14. String? title,
  15. String? hintText,
  16. String? fontFamily,
  17. Color hintColor = Coolors.borderColor,
  18. Color textColor = Colors.black,
  19. double textSize = FoontSize.font22,
  20. bool enabled = true,
  21. TextInputType keyboardType = TextInputType.name,
  22. bool obscureText = false,
  23. ValueChanged<String>? onChanged,
  24. double width = 60.0,
  25. double height = 60.0,
  26. double borderRadius = 16.0,
})

Implementation

MPinput({
  Key? key,
  this.mKey,
  this.validator,
  this.titleStyle,
  this.inputStyle,
  this.activeColor,
  this.unActiveColor,
  this.controller,
  this.textInputAction,
  this.focusNode,
  this.length = 5,
  this.fillColor,
  this.lableText,
  this.title,
  this.hintText,
  this.fontFamily,
  this.hintColor = Coolors.borderColor,
  this.textColor = Colors.black,
  this.textSize = FoontSize.font22,
  this.enabled = true,
  this.keyboardType = TextInputType.name,
  this.obscureText = false,
  this.onChanged,
  this.width = 60.0,
  this.height = 60.0,
  this.borderRadius = 16.0,
}) : super(key: key);