Skip to content

Line 77 A value of type 'bool?' can't be assigned to a variable of type 'bool'. #1

@Johnsensei

Description

@Johnsensei

The code on line 77 produces the following error in Android Studio Arctic Fox 2020.3.1 Patch 2:

A value of type 'bool?' can't be assigned to a variable of type 'bool'.

Can be fixed with adding a null check (!) to newValue at the end of the line:

onChanged: (newValue) => setState(() => _value = newValue!),

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