Skip to content

APIs that take List<X> should take Iterable<X> #247

@FlutterIssues

Description

@FlutterIssues

Issue by ianloic
Monday Nov 02, 2015 at 22:34 GMT
Originally opened as https://github.com/flutter/engine/issues/1903


I'm often finding myself using List.map to turn a list of data objects into a list of widgets as children or menu items. Every time so far I've forgotten to .toList(). Is there a reason that the APIs that need a list of things don't just take an Iterable?

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: new featureNothing broken; request for a new capabilityframeworkflutter/packages/flutter repository. See also f: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions