Created
June 4, 2021 09:14
-
-
Save matanshukry/198e3b0c685ab77d49c5ac71160f7ab3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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