combineN method
Only apply combine
operation the first time:
n == 1
, then returna
- Otherwise return
combine(a, a)
Implementation
@override
T combineN(T a, int n) {
if (n <= 0) {
throw const FormatException(
"Repeated combining for bands must have n > 0");
}
return n == 1 ? a : combine(a, a);
}