In Dart

[Solved] In Dart | Dart - Code Explorer | yomemimo.com
Question : ?? in dart

Answered by : ravin-laheri

Called also null operator. This operator returns expression on its left, except if it is null, and if so, it returns right expression:
void main() { print(0 ?? 1); // <- 0 print(1 ?? null); // <- 1 print(null ?? null); // <- null print(null ?? null ?? 2); // <- 2
}

Source : | Last Update : Tue, 15 Nov 22

Answers related to in dart

Code Explorer Popular Question For Dart