Created
July 29, 2023 23:33
-
-
Save yarn-rp/83146c8c78f782d9eb2f1257a404876c to your computer and use it in GitHub Desktop.
Example of class using Equatable
This file contains hidden or 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 MyClass extends Equatable { | |
const MyClass(this.id); | |
final int id; | |
@override | |
List<Object> get props => [id]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment