Skip to content

Make BackgroundIsolateBinaryMessenger API consistent on web #145260

@ekuleshov

Description

@ekuleshov

Use case

The BackgroundIsolateBinaryMessenger API requires an ensureInitialized() method call before its instance field can be used. Unfortunately the web implementation of the BackgroundIsolateBinaryMessenger does not have the ensureInitialized() method, to the compilation targeted for the web is failing at compile time with Member not found: 'BackgroundIsolateBinaryMessenger.ensureInitialized' error.

Currently we have to make own wrapper with platform-specific import to make this compile on web.

Proposal

It would be really handy if BackgroundIsolateBinaryMessenger has consistent API between io and web implementations. It will be sufficient to have it throw UnsupportedError('Isolates not supported on web.')

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterplatform-webWeb applications specificallyr: fixedIssue is closed as already fixed in a newer versionteam-webOwned by Web platform teamtriaged-webTriaged by Web platform team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions