onVideoSizeUpdate method
Only used for AndroidViewMode.texture
Implementation
@override
void onVideoSizeUpdate(VideoTextureData data) {
if (_controller.androidViewMode != AndroidViewMode.texture) return;
_controller.textureParams.value = _controller.textureParams.value.copyWith(
textureId: data.textureId,
size: (data.width != null && data.height != null)
? Size(data.width!.toDouble(), data.height!.toDouble())
: null,
);
}