String.splitMap #40072
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
library-core
type-enhancement
A request for a change that isn't a bug
There's a
String.splitMapJoin
method, but when turning a string into a bunch of widgets it would be useful to have aString.splitMap
method.The existing
splitMapJoin
method is then implementable as:The
splitMap
concept would be very useful when, e.g., replacing URLs with clickable links in widget build methods (where you have to turn the incoming string into a list ofTextSpan
s).The text was updated successfully, but these errors were encountered: