From cca3655a4a935b23bbaf6a515ae7584b55b2ce3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Jakubowski?= Date: Mon, 20 Jan 2025 23:03:22 +0100 Subject: [PATCH] Rename variable --- .../lib/src/avfoundation_video_player.dart | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/packages/video_player/video_player_avfoundation/lib/src/avfoundation_video_player.dart b/packages/video_player/video_player_avfoundation/lib/src/avfoundation_video_player.dart index e3628734a05..bf37d556945 100644 --- a/packages/video_player/video_player_avfoundation/lib/src/avfoundation_video_player.dart +++ b/packages/video_player/video_player_avfoundation/lib/src/avfoundation_video_player.dart @@ -185,9 +185,9 @@ class AVFoundationVideoPlayer extends VideoPlayerPlatform { @override Widget buildViewWithOptions(VideoViewOptions options) { final int playerId = options.playerId; - final VideoPlayerViewState? viewType = playerViewStates[playerId]; + final VideoPlayerViewState? viewState = playerViewStates[playerId]; - return switch (viewType) { + return switch (viewState) { VideoPlayerTextureViewState(:final int textureId) => Texture(textureId: textureId), VideoPlayerPlatformViewState() => _buildPlatformView(playerId), @@ -260,10 +260,9 @@ final class VideoPlayerTextureViewState extends VideoPlayerViewState { final int textureId; @override - bool operator ==(Object other) { - return identical(this, other) || - other is VideoPlayerTextureViewState && other.textureId == textureId; - } + bool operator ==(Object other) => + identical(this, other) || + other is VideoPlayerTextureViewState && other.textureId == textureId; @override int get hashCode => textureId.hashCode;