Interface constructor

Interface(
  1. String name, {
  2. String? baseClass,
  3. List<IExpression>? prototypes,
})

Example

Interface('Flyable', baseClass: 'Breathable', prototypes: [
   Method(name: 'doFly', returnType: 'void')
 ]),

Output: abstract class Flyable extends Breathable { void doFly(); }

Implementation

Interface(this.name, {this.baseClass, this.prototypes});