I am developing an application using angular dart. I am using angular dart material input for getting input from user.
I have a multiline text input for which I use material input and type=”text”.
I have made this field “required” but the problem is when the user enters white space or enter, the “required” is gone. I need a attribute where i can specify a constraint that at least one non-white space character must be entered.
How to achieve this?
Here is my code where I have used material input:
<material-input ngControl="textAnswer" [(ngModel)]="answer" multiline type="text" label="Your answer" required> </material-input>