MaterialXFormController constructor

MaterialXFormController({
  1. Key? key,
  2. bool isRequired = false,
  3. TextEditingController? controller,
  4. FormStatus status = FormStatus.nothing,
  5. Widget? suffix,
  6. Widget? prefix,
  7. bool onlySuccessParameter = true,
})

Implementation

MaterialXFormController({Key? key, this.isRequired = false, this.controller, this.status = FormStatus.nothing, this.suffix, this.prefix, this.onlySuccessParameter = true}) {
  controller ??= TextEditingController();
  focusNode ??= FocusNode();
}