Last active
October 13, 2019 01:05
-
-
Save felangel/26e17094af80ca5cabbbbb54cad1f136 to your computer and use it in GitHub Desktop.
[intro_equatable] Person extends Equatable
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
import "package:equatable/equatable.dart"; | |
class Person extends Equatable { | |
final String name; | |
final int age; | |
const Person({this.name, this.age}); | |
@override | |
List<Object> get props => [name, age]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment