Skip to content

Error: The getter 'initialized' isn't defined for the class 'VideoPlayerValue'. #69923

Closed

Description

@jmagman

Getting TAP errors from FRoB on every PR (for example, #69809)

DartSummary action:
ERROR: third_party/dart/flutter/examples/gallery/flutter/lib/demo/video_demo.dart:109
  The getter 'initialized' isn't defined for the type 'VideoPlayerValue'. #undefined_getter

ERROR: third_party/dart/flutter/examples/gallery/flutter/lib/demo/video_demo.dart:114
  The getter 'initialized' isn't defined for the type 'VideoPlayerValue'. #undefined_getter

ERROR: third_party/dart/flutter/examples/gallery/flutter/lib/demo/video_demo.dart:181
  The getter 'initialized' isn't defined for the type 'VideoPlayerValue'. #undefined_getter

video_demo.dart:109:44: Error: The getter 'initialized' isn't defined for the class 'VideoPlayerValue'.
 - 'VideoPlayerValue' is from 'package:video_player/video_player.dart' 
Try correcting the name to the name of an existing getter, or defining a getter or field named 'initialized'.
    _initialized = widget.controller.value.initialized;
                                           ^^^^^^^^^^^
video_demo.dart:114:66: Error: The getter 'initialized' isn't defined for the class 'VideoPlayerValue'.
 - 'VideoPlayerValue' is from 'package:video_player/video_player.dart' 
Try correcting the name to the name of an existing getter, or defining a getter or field named 'initialized'.
      final bool controllerInitialized = widget.controller.value.initialized;
                                                                 ^^^^^^^^^^^
video_demo.dart:181:35: Error: The getter 'initialized' isn't defined for the class 'VideoPlayerValue'.
 - 'VideoPlayerValue' is from 'package:video_player/video_player.dart' 
Try correcting the name to the name of an existing getter, or defining a getter or field named 'initialized'.
            if (!controller.value.initialized) {
                                  ^^^^^^^^^^^

Looks related to flutter-team-archive/plugins#3165 @blasten

Activity

  1. blasten commented on Nov 5, 2020

    @blasten

    yeah. that should be fixed now. Let me know if you are still seeing it.

  2. jmagman commented on Nov 5, 2020

    @jmagman
    MemberAuthor

    I don't think FRoB can handle the downstream change, my failing cl reverted your fix https://critique-ng.corp.google.com/cl/340912149/depot/google3/third_party/dart/flutter/examples/gallery/flutter/lib/demo/video_demo.dart

    Not sure if we just want to chalk this up to FRoB doing the best it can, but this being a weird case @renyou

  3. lionuncle commented on Mar 24, 2021

    @lionuncle

    use isInitialized instead of initialized

  4. CaseyHillers commented on Mar 8, 2022

    @CaseyHillers
    Contributor

    Closing as this seems fixed. Feel free to reopen if this is still happening.

  5. github-actions commented on Mar 22, 2022

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  6. locked as resolved and limited conversation to collaborators on Mar 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: contributor-productivityTeam-specific productivity, code health, technical debt.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions