Skip to content

_MergingListenable should use an Iterable #143664

@TimeLex

Description

@TimeLex

Use case

The _MergingListenable in change_notifier.dart uses a List to store its children. If the constructor is called with an Iterable for the children, it must be converted to a List unnecessarily.

Proposal

The type of _MergingListenable._children should be changed to Iterable<Listenable?>, as it is only used for iteration through for-loops.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectc: proposalA detailed proposal for a change to Flutterframeworkflutter/packages/flutter repository. See also f: labels.r: fixedIssue is closed as already fixed in a newer versionteam-frameworkOwned by Framework teamtriaged-frameworkTriaged by Framework team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions