dart extending class code example
Example: dart extension
extension FancyNum on num {
num plus(num other) => this + other;
num times(num other) => this * other;
}
extension FancyNum on num {
num plus(num other) => this + other;
num times(num other) => this * other;
}