Skip to content

'NoteDetail' isn't defined for the class 'NoteListState'. #4

Open
@ghost

Description

I am getting this error:
'NoteDetail' isn't defined for the class 'NoteListState'.

  • 'NoteListState' is from 'package:notes/screens/note_list.dart' ('lib/screens/note_list.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'NoteDetail'.

The function where this error originates is this one:
void navigateToDetail(String title) {
Navigator.push(context, MaterialPageRoute(builder: (context) {
return NoteDetail(title);
}));
}
}

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