getHtmlTag static method

String getHtmlTag(
  1. String componentName,
  2. Map<String, String> props
)

Implementation

static String getHtmlTag(String componentName, Map<String, String> props) {
  var propsString = "";
  props.forEach((key, value) {
    if (!["config", "events", "style"].contains(key)) {
      propsString += "$key=\"$value\"";
    }
  });

  return '''<pay-engine id="component" type="$componentName" style="z-index: 100" $propsString ></pay-engine>''';
}