convertFlags method
This method is just visible for unit testing and should not be relied on. Its method signature may change at any time.
Implementation
@visibleForTesting
int convertFlags(List<int> flags) {
var value = 0;
for (final flag in flags) {
if (!_isPowerOfTwo(flag)) {
throw ArgumentError.value(flag, 'flag\'s value must be power of 2');
}
value |= flag;
}
return value;
}