BaseInput constructor
BaseInput({
- Key? key,
- List<
TextInputFormatter> ? 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,
- dynamic onTogglePassVisible()?,
- dynamic onTextChanged()?,
- bool useBorder = true,
- 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;