primaryPrefix property
String?
get
primaryPrefix
Get which prefix of property will be overriden when parse.
If it is Null, the feature will be disabled.
Implementation
String? get primaryPrefix => _primaryPrefix;
set
primaryPrefix
(String? prefix)
Specify which prefix should be resolve at first.
If it applied as Null, this feature will be disabled.
It should not be assigned as empty String. Otherwise, ArgumentError will be thrown.
Implementation
set primaryPrefix(String? prefix) {
if (prefix != null) {
if (prefix.isEmpty) {
_encounteredEmptyPrefix("primaryPrefix");
}
try {
_findCorrespondedParser(prefix);
} on StateError {
throw ArgumentError.value(prefix, "primaryPrefix",
"No registered parser using the given prefix.");
}
}
_primaryPrefix = prefix;
}