File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/video_player/video_player/lib Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -742,12 +742,12 @@ class _VideoProgressIndicatorState extends State<VideoProgressIndicator> {
742
742
Widget build (BuildContext context) {
743
743
Widget progressIndicator;
744
744
if (controller.value.initialized) {
745
- final int duration = controller.value.duration? .inMilliseconds ?? 0 ;
746
- final int position = controller.value.position? .inMilliseconds ?? 0 ;
745
+ final int duration = controller.value.duration.inMilliseconds;
746
+ final int position = controller.value.position.inMilliseconds;
747
747
748
748
int maxBuffering = 0 ;
749
749
for (DurationRange range in controller.value.buffered) {
750
- final int end = range.end? .inMilliseconds ?? 0 ;
750
+ final int end = range.end.inMilliseconds;
751
751
if (end > maxBuffering) {
752
752
maxBuffering = end;
753
753
}
You can’t perform that action at this time.
0 commit comments