SmartField constructor

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. VoidCallback callback,
  13. bool password: false,
  14. @required TextEditingController controller,
  15. bool readOnly: false}
)

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.callback,
  this.password = false,
  @required this.controller,
  this.readOnly = false,
}) : super(key: key);