Skip to content

Instantly share code, notes, and snippets.

@tailorvj
Last active April 7, 2020 15:37
Show Gist options
  • Save tailorvj/0cd5705a30666b559c13eb67bc1d1f43 to your computer and use it in GitHub Desktop.
Save tailorvj/0cd5705a30666b559c13eb67bc1d1f43 to your computer and use it in GitHub Desktop.
A simple Dart class example
void main(){
FullName myName = FullName('Tailor', 'VJ');
print(myName);
}
class FullName{
String firstName;
String lastName;
FullName(this.firstName, this.lastName);
String toString(){
return '${this.firstName} ${this.lastName}';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment