YamlList.wrap constructor
YamlList.wrap(
- List dartList, {
- dynamic sourceUrl,
- CollectionStyle style = CollectionStyle.ANY,
Wraps a Dart list so that it can be accessed (recursively) like a YamlList.
Any SourceSpan
s returned by this list or its children will be dummies
without useful location information. However, they will have a reasonable
implementation of SourceSpan.getLocationMessage
. If sourceUrl
is
passed, it's used as the SourceSpan.sourceUrl
.
Implementation
factory YamlList.wrap(List dartList,
{sourceUrl, CollectionStyle style = CollectionStyle.ANY}) =>
YamlListWrapper(dartList, sourceUrl, style: style);