TextFieldInitialData constructor

const TextFieldInitialData({
  1. @Default(null) String? label,
  2. @Default(null) String? helperMessage,
  3. @Default(null) String? placeholder,
  4. @Default(null) int? maxCount,
  5. @Default(1) int maxLine,
  6. @Default(null) TextInputType? inputType,
  7. @Default("") String text,
  8. @Default(TextInputFocusState.focusout()) TextInputFocusState focusState,
  9. @Default(TextInputErrorState.none()) TextInputErrorState errorState,
  10. @Default(TextInputState.inactive) TextInputState state,
  11. @Default(false) bool needToBlockOverflowInput,
})

Implementation

const factory TextFieldInitialData({
  @Default(null) String? label,
  @Default(null) String? helperMessage,
  @Default(null) String? placeholder,
  @Default(null) int? maxCount,
  @Default(1) int maxLine,
  @Default(null) TextInputType? inputType,
  @Default("") String text,
  @Default(TextInputFocusState.focusout()) TextInputFocusState focusState,
  @Default(TextInputErrorState.none()) TextInputErrorState errorState,
  @Default(TextInputState.inactive) TextInputState state,
  @Default(false) bool needToBlockOverflowInput,
}) = _TextFieldInitialData;