detach method
void
detach()
Releases the platform-view channel. Called by BannerPlacement
whenever it stops owning this controller's current attachment: on
dispose() (the widget instance is gone for good) and when swapped out
in didUpdateWidget (a different controller takes over the live view).
Further calls buffer again rather than throwing — a caller-supplied
controller can still be reused for a LATER widget instance the caller
constructs, which re-attaches it explicitly, but that is the caller's
doing, not this widget silently keeping a dead attachment alive.
Implementation
void detach() {
_methods = null;
}