Skip to content

The value of the field '_foo' isn't used. Try removing the field, or using it. produce invalid code #60410

@stephane-archer

Description

@stephane-archer
class _SkimedImage extends StatefulWidget {
  final String _videoPath;
  final double _selectedVideoProgression;
  final void Function(File selectedThumnail)? _onTap;
  final Future<File> _futureThumbnailFile;

  _SkimedImage(this._videoPath, this._selectedVideoProgression,
      {void Function(File)? onTap})
      : _onTap = onTap,
        _futureThumbnailFile =
            getVideoThumnailFile(_videoPath, _selectedVideoProgression);

  @override
  State<_SkimedImage> createState() => _SkimedImageState();
}

The value of the field '_videoPath' isn't used. Try removing the field, or using it.
The value of the field '_selectedVideoProgression' isn't used. Try removing the field, or using it.

Removing _videoPath _selectedVideoProgression will produce invalid code and change the behavior of the program by removing _futureThumbnailFile = getVideoThumnailFile(_videoPath, _selectedVideoProgression);

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3A lower priority bug or feature requestarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-quick-fixIssues with analysis server (quick) fixestype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions