google / google/built_collection.dart
Add "builtAt" to builders
Open
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
Assessment
This issue has not been assessed yet.