Não consegui entender esse erro, nulo de String de onde? To com dificuldade de achar o erro. Aconteceu depois de eu tentar mudar o setState do refresh.
https://github.com/giseletoledo/flutter_webapi_first_course/tree/main/lib
Erros:
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: type 'Null' is not a subtype of type 'String' E/flutter (14220): #0 new Journal.fromMap package:flutter_webapi_first_course/models/journal.dart:25 E/flutter (14220): #1 JournalService.getAll package:flutter_webapi_first_course/services/journal_service.dart:46 E/flutter (14220): E/flutter (14220): #2 HomeScreenState.refresh package:flutterwebapi_first_course/…/home_screen/home_screen.dart:56 E/flutter (14220): E/flutter (14220): D/EGL_emulation(14220): app_time_stats: avg=168151.59ms min=260.32ms max=336042.84ms count=2