Update States authored by Nicholas Sarian's avatar Nicholas Sarian
......@@ -26,6 +26,12 @@ In the code snippet above, we have an abstract class called CreatePlayerState an
In the CreatePlayerComplete class, there is a single instance variable called response, which is initialized by the constructor. The props list at the end of the class definition is used to determine whether two instances of the CreatePlayerComplete class are equal. In this case, the instances are considered equal if they are instances of the CreatePlayerComplete class and the value of their response instance variable is the same.
At time of this writing, the props getter is not being used in this project. However, if you were to use the props getter to check for equality, you would do this:
```dart
state.props == CreatePlayerComplete.props
```
Assume that `state` is a variable containing the CreatePlayerComplete state.
### Quick Note on @immutable
By adding the @immutable annotation to the abstract class, this indicates that any class that implements the immutable abstract class will remain the same throughout its lifetime.
......
......