mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
If an isolate shuts down (for example if an app calls Isolate.current.kill()), the UIDartState* on DartController will refer to a freed object. This wires through notification that the is shutting down through to the DartController so it can clean up appropriately. This also makes gives the vm-service isolate an UIDartState* so that the shutdown callback can behave correctly.