Flutter Dispose What You Create

Use when writing or reviewing a widget's dispose(): never dispose a controller you didn't create — a constructor-injected controller belongs to its caller, disposing it there is a double-dispose crash.

techmefr Updated

File contents

techmefr/mentis commit 6cf7f0bebf

Frequently asked questions

npx get-skill add techmefr/flutter-dispose-what-you-create