Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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