nullSafeProperty method

Expression nullSafeProperty(
  1. String name
)
inherited

Returns an expression accessing ?.<name> on this expression.

Implementation

Expression nullSafeProperty(String name) => BinaryExpression._(
  this,
  LiteralExpression._(name),
  '?.',
  addSpace: false,
);