AnimatedTextFormField constructor

const AnimatedTextFormField({
  1. Key? key,
  2. Interval? interval = const Interval(0.0, 1.0),
  3. required double width,
  4. AnimationController? loadingController,
  5. AnimationController? inertiaController,
  6. TextFieldInertiaDirection? inertiaDirection,
  7. bool enabled = true,
  8. String? labelText,
  9. Widget? prefixIcon,
  10. Widget? suffixIcon,
  11. TextInputType? keyboardType,
  12. TextInputAction? textInputAction,
  13. bool obscureText = false,
  14. TextEditingController? controller,
  15. FocusNode? focusNode,
  16. FormFieldValidator<String>? validator,
  17. ValueChanged<String>? onFieldSubmitted,
  18. FormFieldSetter<String>? onSaved,
  19. bool autocorrect = false,
  20. Iterable<String>? autofillHints,
})

Implementation

const AnimatedTextFormField({
  Key? key,
  this.interval = const Interval(0.0, 1.0),
  required this.width,
  this.loadingController,
  this.inertiaController,
  this.inertiaDirection,
  this.enabled = true,
  this.labelText,
  this.prefixIcon,
  this.suffixIcon,
  this.keyboardType,
  this.textInputAction,
  this.obscureText = false,
  this.controller,
  this.focusNode,
  this.validator,
  this.onFieldSubmitted,
  this.onSaved,
  this.autocorrect = false,
  this.autofillHints,
})  : assert((inertiaController == null && inertiaDirection == null) ||
          (inertiaController != null && inertiaDirection != null)),
      super(key: key);