Skip to content

Stop duplicating code across disposables. #137435

@polina-c

Description

@polina-c

We are duplicating code across disposables in order to instrument code for leak tracking by communicating creation and disposal to MemoryAllocations.instance

Design draft: http://flutter.dev/go/introduce-disposable

When you duplicate the code again, leave TODO:

// TODO(polina-c): stop duplicating code across disposables
// https://github.com/flutter/flutter/issues/137435

Metadata

Metadata

Assignees

Labels

📜Issue was posted to Discord. Remove to have the issue reannounced. (For "design doc", "emergency")P1High-priority issues at the top of the work lista: leak trackingIssues and PRs related to memory leaks detected by leak_trackerc: new featureNothing broken; request for a new capabilitydesign docTracks a design discussion documentframeworkflutter/packages/flutter repository. See also f: labels.team-frameworkOwned by Framework teamtriaged-frameworkTriaged by Framework team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions