domain property
Domain of this function
Implementation
@override
List<bool Function(num)> get domain {
if (exponent == 0) {
throw DomainNotDefinedError.value(
exponent, 'exponent', 'Must not be zero');
}
if (exponent % 2 == 1 || (1 / exponent) % 2 == 1) {
return <bool Function(num)>[(num x) => exponent > 0 || x != 0];
} else {
return <bool Function(num)>[
(num x) => x >= 0 && (exponent > 0 || x != 0)
];
}
}