Static

Putting static in front of a member variable or method causes the variable or method to belong to the class rather than the instance.

class SomeClass {
  static int myProperty = 0;
  static void myMethod() {
    print('Hello, Dart!');
  }
}

Static methods

class Math {
  static num max(num a, num b) {
    return (a > b) ? a : b;
  }

  static num min(num a, num b) {
    return (a < b) ? a : b;
  }
}

// its considered better practice to have these as global functions