Skip to content

Error in day8 code #43

Description

@Shivansh-yadav13

if (value.isEmpty) {

This does not work anymore, it gives an error

The property 'isEmpty' can't be unconditionally accessed because the receiver can be 'null'. 

Similarly,

if (_formKey.currentState.validate()) {

This also give error

The method 'validate' can't be unconditionally invoked because the receiver can be 'null'. 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions