Created
          April 30, 2017 19:31 
        
      - 
      
 - 
        
Save zidenis/d539247177490033fe7945912beffbe3 to your computer and use it in GitHub Desktop.  
    null aware assignment
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | var languageA = "Dart"; | |
| var languageB = null; | |
| languageA ??= "not Dart"; | |
| languageB ??= "not Dart"; | |
| print(languageA); // "Dart" | |
| print(languageB); // "not Dart" | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment