Skip to content

Provide convenience conversion for Map->NSDictionary and List->NSArray #1443

Closed
@stuartmorgan-g

Description

@stuartmorgan-g

Objective-C has very convenient literal syntax for arrays and dictionaries, much like Dart does. With those not available in Dart, it looks like the only way to make an array or dictionary right now is either dynamically via adding objects, or with the old-style methods like initWithObjectsAndKeys: and initWithObjects, which are clunky and error prone. (And actually, it doesn't look like those specific ones currently work due to #1192.)

It would be very helpful to be able to initialize them from a List or Map, the way NSString has a convenience constructor that takes a String.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions