startsWithAny static method
判断一个字符串以任何给定的前缀开始
Implementation
static bool startsWithAny(
String? str,
List<Pattern> prefixes, [
int index = 0,
]) {
return str != null &&
prefixes.any((prefix) => str.startsWith(prefix, index));
}
判断一个字符串以任何给定的前缀开始
static bool startsWithAny(
String? str,
List<Pattern> prefixes, [
int index = 0,
]) {
return str != null &&
prefixes.any((prefix) => str.startsWith(prefix, index));
}