MyoroInputViewModel class

View model of MyoroInput.

Constructors

MyoroInputViewModel(MyoroInputFormatter? formatter, MyoroInputStyleEnum inputStyle, TextAlign textAlign, String label, String text, String placeholder, Widget? prefix, Widget? suffix, bool enabled, bool readOnly, bool autofocus, bool enableInteractiveSelection, bool canShowClearTextButton, bool showObscureTextButton, int minLines, int maxLines, TextInputType keyboardType, MyoroInputCheckboxOnChanged? checkboxOnChanged, MyoroInputValidation? validation, MyoroInputOnFieldSubmitted? onFieldSubmitted, MyoroInputOnChanged? onChanged, VoidCallback? onCleared, Key? inputKey, VoidCallback? onTap, FocusNode? focusNode, TextEditingController? controller, bool obscureText)
Default constructor.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state MyoroInputState
_state getter.
no setter

Methods

checkboxOnChanged(bool value) → void
MyoroCheckboxConfiguration.onChanged of the checkbox.
clearText() → void
Clears the MyoroInput's text.
dispose() → void
Dispose function.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
obscureText() → void
Toggles the obscure text state of the MyoroInput.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited