TextDynamicInput<T> constructor

const TextDynamicInput<T>({
  1. Key? key,
  2. required String hintText,
  3. List<TextInputFormatter> formatters = const [],
  4. InputDecoration? decoration,
  5. T? initialValue,
  6. ValueChanged<T?>? onChanged,
  7. TextInputType? keyboardType,
  8. int? maxLines,
  9. bool enabled = true,
  10. TextEditingController? controller,
  11. String? errorText,
})

Implementation

const TextDynamicInput({
  super.key,
  required this.hintText,
  this.formatters = const [],
  this.decoration,
  this.initialValue,
  this.onChanged,
  this.keyboardType,
  this.maxLines,
  this.enabled = true,
  this.controller,
  this.errorText,
}) : assert(
        T == int || T == double || T == String,
        "The type T must be int, double or String",
      );