visitIfNullExpr method

  1. @override
void visitIfNullExpr(
  1. IfNullExpr ast,
  2. EmitterVisitorContext context
)
override

Implementation

@override
void visitIfNullExpr(o.IfNullExpr ast, EmitterVisitorContext context) {
  context.print('(');
  ast.condition.visitExpression(this, context);
  context.print('?? ');
  ast.nullCase.visitExpression(this, context);
  context.print(')');
}