Interface constructor
Interface(
- String name, {
- String? baseClass,
- 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});