google / google/built_collection.dart

Add "builtAt" to builders

Open
#83 16 comments 10 reactions 1 assignee Claimed by @davidmorgan View on GitHub
p3 / feature request
Dominant language
Dart
Stars
285
Forks
54
Avg merge
23m
Merged PRs (30d)
1

Description

ListBuilder could for example have a "builtAt" method that converts the value at the specified index to a builder, similar to the "rebuild" method but for an element in the collection:

var list = new BuiltList>([new BuiltList[1]]);
var rebuiltList = list.rebuild((b) => b.rebuildAt(0).add(2));

--> [[1, 2]]

This should work for nested built collections and for built values.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.