Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

dart operator ??

String? foo = null;

print(foo ?? " its empty");//output: ' its empty'

foo = "foo";

print(foo ?? " its empty");//output: "foo"
 
PREVIOUS NEXT
Tagged: #dart #operator
ADD COMMENT
Topic
Name
8+5 =