StringScanner constructor
Creates a new StringScanner that starts scanning from position
.
position
defaults to 0, the beginning of the string. sourceUrl
is the
URL of the source of the string being scanned, if available. It can be
a String, a Uri, or null
.
Implementation
StringScanner(this.string, {sourceUrl, int position})
: sourceUrl = sourceUrl is String ? Uri.parse(sourceUrl) : sourceUrl {
if (position != null) this.position = position;
}