ModulaTextField constructor
const
ModulaTextField({
- Key? key,
- String? label,
- String? hintText,
- String? initialValue,
- String? errorText,
- ValueChanged<
String> ? onChanged, - ModulaTextFieldType type = ModulaTextFieldType.normal,
- int? maxLines,
- int? maxLength,
- IconData? prefixIcon,
- IconData? suffixIcon,
- bool showClearButton = false,
- bool showCharacterCount = false,
- InputDecoration? decoration,
Implementation
const ModulaTextField({
super.key,
this.label,
this.hintText,
this.initialValue,
this.errorText,
this.onChanged,
this.type = ModulaTextFieldType.normal,
this.maxLines,
this.maxLength,
this.prefixIcon,
this.suffixIcon,
this.showClearButton = false,
this.showCharacterCount = false,
this.decoration,
});