asA method Null safety

Expression asA(
  1. Expression other
)

Returns the result of this as other.

Implementation

Expression asA(Expression other) =>
    ParenthesizedExpression._(BinaryExpression._(
      expression,
      other,
      'as',
    ));