FancyInput constructor
FancyInput({
- required String id,
- required List<
String? Function()> rules(- String value
- TextEditingController? controller,
- String? mask,
- TextInputType? keyboardType,
- List<
TextInputFormatter> ? inputFormatters,
Creates a FancyInput instance with the provided properties.
If no controller
is provided, a new TextEditingController is created.
Implementation
FancyInput({
required this.id,
required this.rules,
TextEditingController? controller,
this.mask,
this.keyboardType,
this.inputFormatters,
}) {
// Initialize the controller, either from the provided one or create a new instance.
this.controller = controller ?? TextEditingController();
}