getPrefixes static method
Implementation
static List<String> getPrefixes(
List<List<dynamic>> conds, [
bool invert = false,
]) {
return conds.map((outer) {
return outer
.map((inner) {
if (inner is _ConditionUtil) {
var key = 'if';
if (invert ^ inner.invert) {
key = 'unless';
}
if (inner.str.isNotEmpty) return '$key ${inner.str}';
}
return '';
})
.join(' ')
.replaceAll('null ', '');
}).toList();
}