Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Create top level consts for service extension names so that they can be referenced in other tools #106502

Closed
@kenzieschmoll

Description

@kenzieschmoll

In the framework, we have several service extensions that are registered throughout the different bindings (example 'performanceOverlay' https://github.com/flutter/flutter/blob/master/packages/flutter/lib/src/widgets/binding.dart#L374).

These strings can easily be pulled out into constants so that they can be accessed by other libraries. DevTools stores a copy of each of these strings right now so that we can call the service extensions. This is not very robust because a name change or deletion could break our tooling. We should define the extension names as constants in the framework so that we can reference these names from Flutter in DevTools for more robustness and less copied code.

Metadata

Metadata

Assignees

Labels

a: devtoolsDevTools related - suite of performance and debugging tools

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions