print(text1?.isEmpty ?? true); // true, because text1 is null print(text2?.isEmpty ?? true); // true, because text2 is empty print(text3?.isEmpty ?? true); // false, because text3 is not empty
print(text1 ?? true); // true, because text1 is null print(text2 ?? true); // "", because text2 is not null (but it's an empty string) print(text3 ?? true); // "hi", because text3 is not null } ```