mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
The C++ wrapper's plugin registrar can own plugins to provided lifetime management. However, plugins expect the registrar to be valid for the life of the object, including during destruction, so any owned plugins must be explicitly cleared before any registrar-specific destruction happens.