Categories
Dart

Creating a Classes and Instantiate

class  className {
    type fieldName;
    // anonymous function
    type get {
      return
    }
}

class InputField {
     int maxLength;
     String name;
}

var field = new className();

field.name = “fieldname”;

print(field.name);