otherStoreNamed function
The line of text that names another store, and the name, or null.
Public so an uploader can refuse text on its way to Apple rather than
relying on verify having run first — the text it has is already
filtered to the platform, which is the only text this question is about.
Implementation
({String line, String name})? otherStoreNamed(String text) {
for (final line in const LineSplitter().convert(text)) {
final match = _otherStoreNames.firstMatch(line);
if (match != null) {
return (line: line.trim(), name: match.group(0)!);
}
}
return null;
}