Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
class MyData {
final int? value;
String get valueText {
if (value == null) {
return "No Value";
final int val = value;
return val.toString();
void main() {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment