-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
floatingActionButton: FloatingActionButton(
onPressed: () async {
final todo = await Navigator.of(context).pushNamed('/add');
_insertTodo(todo);
},
10장 260페이지 에서 _insertTodo(todo);
부분이 에러가 납니다.
Error: The argument type 'Object?' can't be assigned to the parameter type 'Todo'.
라고 나오는데 이해도가 부족해서 그런지 잘 안되네요..
그리고 플러터 2.0 업데이트 이후 non-nullable 관련해서 여러 오류도 나는 것 같습니다.....
Metadata
Metadata
Assignees
Labels
No labels