Skip to content

The argument type 'void Function()?' can't be assigned to the parameter type 'Function' #105

@abdullahalamodi

Description

@abdullahalamodi

the origin type of onPress function is void Function()? because the button doesn't receive any value nor return.
and causes
The argument type 'void Function()?' can't be assigned to the parameter type 'Function'
compile time error

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