isNullAware property

  1. @override
bool isNullAware
override

Whether this method invocation is null aware (as opposed to non-null).

Implementation

@override
bool get isNullAware {
  if (isCascaded) {
    return _ancestorCascade.isNullAware;
  }
  return operator != null &&
      (operator!.type == TokenType.QUESTION_PERIOD ||
          operator!.type == TokenType.QUESTION_PERIOD_PERIOD);
}