ASTModifiers constructor

ASTModifiers({
  1. bool isStatic = false,
  2. bool isFinal = false,
  3. bool isPrivate = false,
  4. bool isPublic = false,
})

Implementation

ASTModifiers(
    {this.isStatic = false,
    this.isFinal = false,
    this.isPrivate = false,
    this.isPublic = false}) {
  if (isPrivate && isPublic) {
    throw StateError("Can't be private and public at the same time!");
  }
}