Skip to content

Commit

Permalink
remove warning for flutter 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Illia Romanenko committed May 12, 2022
1 parent 1cb5070 commit 7e82a4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flutter_vlc_player/lib/src/vlc_app_life_cycle_observer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class VlcAppLifeCycleObserver extends Object with WidgetsBindingObserver {
final VlcPlayerController _controller;

void initialize() {
WidgetsBinding.instance!.addObserver(this);
WidgetsBinding.instance.addObserver(this);
}

@override
Expand All @@ -29,6 +29,6 @@ class VlcAppLifeCycleObserver extends Object with WidgetsBindingObserver {
}

void dispose() {
WidgetsBinding.instance!.removeObserver(this);
WidgetsBinding.instance.removeObserver(this);
}
}

0 comments on commit 7e82a4b

Please sign in to comment.