YamlList constructor
YamlList({
- Object? sourceUrl,
Creates an empty YamlList.
This list's span won't have useful location information. However, it
will have a reasonable implementation of SourceSpan.message
. If
sourceUrl
is passed, it's used as the SourceSpan.sourceUrl
.
Implementation
factory YamlList({Object? sourceUrl}) => YamlListWrapper(const [], sourceUrl);