79614061

Date: 2025-05-09 11:57:28
Score: 1.5
Natty:
Report link

Like the other answer stated, you can annotate your Post class with @freezed. Freezed will have your class extend equatable (which is what Bloc uses to determine if a classes' values have indeed changed , if not, no event is triggered). OR your post class can extend Equatable directly and you can override List<Object?> get props => [your, fields, here].

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @freezed
  • Single line (0.5):
  • High reputation (-1):
Posted by: Mike6679