template method

dynamic template(
  1. dynamic content
)

Implementation

template(content) {
  String android = 'android{  \n';
  android += 'defaultConfig {\n';
  android += '$content\n';
  android += '}\n';
  code = android;
}