ifNum function
Implementation
dynamic ifNum(Function fun) {
return (dynamic val) {
if (val is! num) return val;
return fun(val);
};
}
dynamic ifNum(Function fun) {
return (dynamic val) {
if (val is! num) return val;
return fun(val);
};
}