CopyPastor

Detecting plagiarism made easy.

Score: 0.8097706427057105; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2022-02-27
by My Car

Original Post

Original - Posted on 2022-02-26
by M. Twarog



            
Present in both answers; Present only in the new answer; Present only in the old answer;

Try this:
TextFormField( decoration: const InputDecoration( icon: Icon(Icons.phone), hintText: 'Enter a phone number', labelText: 'Phone', ), validator: (value) { if (value!.isEmpty) { return 'Please enter phone number'; } return null; }, ),
TextFormField( decoration: const InputDecoration( icon: const Icon(Icons.phone), hintText: 'Enter a phone number', labelText: 'Phone', ), validator: (value) { if (value!.isEmpty) { return 'Please enter phone number'; } return null; }, ),
use `value!.isEmpty` instead of `value.isEmpty`.

        
Present in both answers; Present only in the new answer; Present only in the old answer;