0

I am using the Chrome emulator, and sometimes when I Hot Reload my application, I start getting errors even if I haven't changed anything in the code. Here's the error:

DebugService: Error serving requestsError: NoSuchMethodError: The getter 'isolateRef' was called on null. Receiver: null Tried calling: isolateRef

Why is this happening and what can I do to stop it?

Joel Castro
  • 485
  • 6
  • 20
  • 1
    When you use HotReload you rebuild your screen, in case, you call build method again, so I don't know how is your code, but if you are using method or a Widget that use an isolate (a dart thread) you maybe lose the reference of that or calling something that needs the reference state of your widget. – Siloé Bezerra Bispo Nov 25 '22 at 18:20

0 Answers0