Created
February 27, 2021 13:06
-
-
Save HelloCore/00d5136d5d4d8bdcf6ebb25e9282d0ee 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 Person { | |
final String? firstName; | |
Person(this.firstName); | |
} | |
void main() { | |
String x = "1"; | |
var person = Person("hello"); | |
if(person.firstName != null) { | |
x= person.firstName; | |
} | |
print(x) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment