validator: (input) => !input.contains("@")
? "Email id shold be valid"
: null,
The method 'contains' can't be unconditionally invoked because the receiver can be 'null'.
Try making the call conditional (using '?.') or adding a null check to the target ('!').