PropertiesTemplate.fromProperties constructor

PropertiesTemplate.fromProperties(Properties p)

Implementation

PropertiesTemplate.fromProperties(Properties p) {
  p.contents.forEach((e) {
    if(e is PropertiesComment) {
      this.contents.add(e);
    }
    if(e is PropertiesEntry) {
      this.contents.add(PropertiesTemplateEntry(e.key));
    }
  });
}