newActor function

String newActor(
  1. String className,
  2. String methods
)

Implementation

String newActor(String className, String methods) {
  return '''
class ${className}IDLActor {
  const ${className}IDLActor._();
  $methods
}
   ''';
}