Open jimmyff opened 4 years ago
It does have a dispose method, FWIW - at least, on device. (Haven't tried it on web.)
There is a .close()
method, but I don't see a .dispose()
?
Here is the source to confirm no dispose: https://github.com/sarbagyastha/youtube_player_flutter/blob/master/packages/youtube_player_iframe/lib/src/controller.dart
I think close()
is in place of dispose()
, but it breaks the usual flutter convention.
Ah! My mistake: I was looking at the youtube_player_flutter
package, for which the controller does have a dispose
method. You're looking at the youtube_player_iframe
dependency.
YoutubePlayerController has no
.dispose()
method