Skip to content

value is null, but 'value == null' is false #146

Open
@moshstudio

Description

@moshstudio
Map e = ...;
for (var item in e) {
    print(item['displayLogId']); // null
    bool ifNull = item['displayLogId'] == null;
    print(ifNull); / false
}

i print item['displayLogId'] which is null, but for item['displayLogId'] == null, it is false. Is it right, or there is a better method to use?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions