the method 'validate' 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 ('!')
1
The method 'validate' 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 ('!').