extension NumberParsing on String {
int parseInt() {
return int.parse(this);
}
// ···
}
extension FancyNum on num {
num plus(num other) => this + other;
num times(num other) => this * other;
}
extension NumberParsing on String {
int parseInt() {
return int.parse(this);
}
// ···
}