SmartField constructor Null safety

SmartField(
  1. {Key? key,
  2. TextInputType type = TextInputType.text,
  3. required FocusNode focusNode,
  4. required FocusNode? nextFocus,
  5. TextInputAction? action,
  6. required String label,
  7. String? hint,
  8. String? errorMessage,
  9. bool mandatory = false,
  10. bool validate = false,
  11. int? maxLength,
  12. String? maxLengthMessage,
  13. int? minLength,
  14. String? minLengthMessage,
  15. VoidCallback? callback,
  16. dynamic onChange(
    1. String
    )?,
  17. bool password = false,
  18. required TextEditingController controller,
  19. bool readOnly = false,
  20. TextEditingController? sameTo,
  21. Color readOnlyColor = const Color(0xFFE9EAEE),
  22. TextCapitalization capitalization = TextCapitalization.none,
  23. String? sameToMessage,
  24. List<TextInputFormatter>? formatters}
)

Implementation

SmartField({
  Key? key,
  this.type = TextInputType.text,
  required this.focusNode,
  required this.nextFocus,
  this.action,
  required this.label,
  this.hint,
  this.errorMessage,
  this.mandatory = false,
  this.validate = false,
  this.maxLength,
  this.maxLengthMessage,
  this.minLength,
  this.minLengthMessage,
  this.callback,
  this.onChange,
  this.password = false,
  required this.controller,
  this.readOnly = false,
  this.sameTo,
  this.readOnlyColor = const Color(0xFFE9EAEE),
  this.capitalization = TextCapitalization.none,
  this.sameToMessage,
  this.formatters,
}) : super(key: key);