TextDynamicInput<T> constructor
const
TextDynamicInput<T> ({
- Key? key,
- required String hintText,
- List<
TextInputFormatter> formatters = const [], - InputDecoration? decoration,
- T? initialValue,
- ValueChanged<
T?> ? onChanged, - TextInputType? keyboardType,
- int? maxLines,
- bool enabled = true,
- TextEditingController? controller,
- 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",
);