Skip to content

Instantly share code, notes, and snippets.

@harshsoni1110
Created June 16, 2020 17:12
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harshsoni1110/a05b44109fbca7a20063214a7db09775 to your computer and use it in GitHub Desktop.
Save harshsoni1110/a05b44109fbca7a20063214a7db09775 to your computer and use it in GitHub Desktop.
class NotificationState extends Equatable {
const NotificationState();
@override
List<Object> get props => [];
}
class StartUpNotificationState extends NotificationState {}
class IndexedNotification extends NotificationState {
final int index;
IndexedNotification(this.index);
@override
List<Object> get props => [this.index];
@override
bool operator ==(Object other) => false;
@override
int get hashCode => super.hashCode;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment