nullSafeProperty method Null safety

Expression nullSafeProperty(
  1. String name
)

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

Implementation

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