@@ -22,6 +22,6 @@ class CreatePlayerComplete extends CreatePlayerState {
...
@@ -22,6 +22,6 @@ class CreatePlayerComplete extends CreatePlayerState {
List<Object>getprops=>[response];
List<Object>getprops=>[response];
}
}
```
```
In the code snippet above, we have an abstract class called CreatePlayerState and two concrete states: CreatePlayerLoading and CreatePlayerComplete. The Equatable package provides an easy way to define equality comparison methods in Dart. In the CreatePlayerState abstract class, the props method is used to check for instance equality. Instances are considered equal if they are instances of the CreatePlayerState class, and no instance variables are needed to evaluate for equality.
In the code snippet above, we have an abstract class called CreatePlayerState and three concrete states: CreatePlayerInitial, CreatePlayerLoading, and CreatePlayerComplete. The Equatable package provides an easy way to define equality comparison methods in Dart. In the CreatePlayerState abstract class, the props method is used to check for instance equality. Instances are considered equal if they are instances of the CreatePlayerState class, and no instance variables are needed to evaluate for equality.
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.
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.