Answers for "dart extension"

6

dart extension

extension FancyNum on num {
  num plus(num other) => this + other;

  num times(num other) => this * other;
}
Posted by: Guest on May-19-2020
4

dart extension function

extension NumberParsing on String {
  int parseInt() {
    return int.parse(this);
  }
  // ···
}
Posted by: Guest on July-10-2020

Code answers related to "Dart"

Browse Popular Code Answers by Language