Ahmed Amir
0
Q:

dart extension

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

  num times(num other) => this * other;
}
2

New to Communities?

Join the community