assignVar method
- @Deprecated('Use `declareVar(name).assign(expression)`')
- String name, [
- Reference? type
inherited
Return var {name} = {this}
.
Implementation
@Deprecated('Use `declareVar(name).assign(expression)`')
Expression assignVar(String name, [Reference? type]) => BinaryExpression._(
type == null
? LiteralExpression._('var $name')
: BinaryExpression._(
type.expression,
LiteralExpression._(name),
'',
),
this,
'=',
);