Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Getting Started

Matan Lurey edited this page Mar 30, 2017 · 2 revisions

Common patterns

Classes

Creating a simple class

class Animal {}
new ClassBuilder(
  'Animal',
)

Creating an abstract class with a method

abstract class Animal {
  void eat();
}
new ClassBuilder(
  'Animal',
  asAbstract: true,
)..addMethod(
  new MethodBuilder.returnVoid(
    'eat',
    asAbstract: true,
  ),
)
Clone this wiki locally