disposeTextureView method
void
disposeTextureView()
(Android Only) disposeTextureView is used to dispose the texture view. It is the responsibility of the application to dispose the texture view if the controller is created by the application.
Implementation
void disposeTextureView() async {
if (Platform.isAndroid) {
var result = await PlatformService.invokeMethod(
PlatformMethod.disposeTextureView,
arguments: {"texture_id": textureId.toString()});
if (result["success"]) {
_textureId = null;
}
}
}