IconTextField constructor

IconTextField({
  1. Key? key,
  2. String? text,
  3. String? placeholder,
  4. bool prefixIconSelectedCallback(
    1. String currentText
    )?,
  5. required String prefixIconNormalImageName,
  6. required String prefixIconSelectedImageName,
  7. String? package,
  8. TextStyle? style,
  9. bool? autofocus = false,
  10. bool? obscureText = false,
  11. TextInputType? keyboardType,
  12. TextEditingController? controller,
  13. bool? showClear = false,
  14. TextInputAction? textInputAction,
  15. FocusNode? focusNode,
  16. ValueChanged<String>? onSubmitted,
})

Implementation

IconTextField({
  Key? key,
  this.text,
  this.placeholder,

  /// prefix icon
  this.prefixIconSelectedCallback,
  required this.prefixIconNormalImageName,
  required this.prefixIconSelectedImageName,
  this.package,
  this.style,
  this.autofocus = false,
  this.obscureText = false,
  this.keyboardType,
  this.controller,
  this.showClear = false,
  this.textInputAction,
  this.focusNode,
  this.onSubmitted,
}) : super(
        key: key,
      );