getPersistentIsolateData method Null safety

  1. @override
ByteData? getPersistentIsolateData()
override

The embedder can specify data that the isolate can request synchronously on launch. This accessor fetches that data.

This data is persistent for the duration of the Flutter application and is available even after isolate restarts. Because of this lifecycle, the size of this data must be kept to a minimum.

For asynchronous communication between the embedder and isolate, a platform channel may be used.

Implementation

@override
ByteData? getPersistentIsolateData() => _platformDispatcher.getPersistentIsolateData();