createAttributeStatements method

List<Statement> createAttributeStatements(
  1. Binding binding,
  2. String elementName,
  3. NodeReference renderNode, {
  4. required bool isHtmlElement,
})

Implementation

List<o.Statement> createAttributeStatements(
  ir.Binding binding,
  String elementName,
  NodeReference renderNode, {
  required bool isHtmlElement,
}) {
  var expression = _toExpression(binding.source, o.THIS_EXPR);
  return bindingToUpdateStatements(
    binding,
    o.THIS_EXPR,
    renderNode,
    isHtmlElement,
    expression,
  );
}