Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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