Skip to content

Commit

Permalink
Rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
FirentisTFW committed Jan 20, 2025
1 parent 09e148e commit cca3655
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit cca3655

Please sign in to comment.