Skip to content

Copying InheritedWidget example leads to avoid_renaming_method_parameters #112136

@robiness

Description

@robiness

Simply copying the InheritedWidget example leads to an avoid_renaming_method_parameters lint warning.

The implementation uses the name oldWIdget:

bool updateShouldNotify(covariant InheritedWidget oldWidget);

while the example still uses just old:
/// bool updateShouldNotify(FrogColor old) => color != old.color;

Metadata

Metadata

Assignees

No one assigned

    Labels

    f: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.r: fixedIssue is closed as already fixed in a newer version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions