Created
February 27, 2021 13:07
-
-
Save HelloCore/4a5131abe5aa7cc87edca4f10077d387 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