nullChecked property Null safety

Expression nullChecked

Applies the null check operator on this expression, returning this !.

Please note that this is only valid when emitting code with the null safety syntax enabled.

Implementation

Expression get nullChecked => BinaryExpression._(
      this,
      const LiteralExpression._('!'),
      '',
      addSpace: false,
    );