BaseInput constructor

BaseInput({
  1. Key? key,
  2. List<TextInputFormatter>? inputFormatters,
  3. required TextEditingController textController,
  4. required String label,
  5. TextStyle? labelStyle,
  6. double? height,
  7. bool isObscuredText = false,
  8. bool isPasswordVisible = false,
  9. bool isError = false,
  10. bool isDisable = false,
  11. bool isMultiLine = false,
  12. bool isErrorBorderEnabled = false,
  13. String errorMessage = "",
  14. TextInputType inputType = TextInputType.text,
  15. dynamic onTogglePassVisible()?,
  16. dynamic onTextChanged(
    1. String
    )?,
  17. bool useBorder = true,
  18. int? maxLength,
})

Implementation

BaseInput({
  super.key,
  this.inputFormatters,
  required TextEditingController textController,
  required String label,
  TextStyle? labelStyle,
  double? height,
  bool isObscuredText = false,
  bool isPasswordVisible = false,
  bool isError = false,
  bool isDisable = false,
  bool isMultiLine = false,
  bool isErrorBorderEnabled = false,
  String errorMessage = "",
  TextInputType inputType = TextInputType.text,
  Function()? onTogglePassVisible,
  Function(String)? onTextChanged,
  bool useBorder = true,
  int? maxLength,
}) : _editingController = textController,
     _label = label,
     _labelStyle = labelStyle,
     _inputType = inputType,
     _isObscuredText = isObscuredText,
     _isPasswordVisible = isPasswordVisible,
     _isError = isError,
     _isDisable = isDisable,
     _isMultiLine = isMultiLine,
     _isErrorBorderEnabled = isErrorBorderEnabled,
     _errorMessage = errorMessage,
     _height = height,
     _onTogglePassVisible = onTogglePassVisible,
     _onTextChange = onTextChanged,
     _useBorder = useBorder,
     _maxLength = maxLength;