Skip to content

Instantly share code, notes, and snippets.

@matanshukry
Created June 4, 2021 09:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matanshukry/198e3b0c685ab77d49c5ac71160f7ab3 to your computer and use it in GitHub Desktop.
Save matanshukry/198e3b0c685ab77d49c5ac71160f7ab3 to your computer and use it in GitHub Desktop.
class MyData {
MyData({this.value});
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