how to use extension in dart 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;
}