Search code examples
flutterdartdart-null-safetyiequatable

Equatable package use for nullable value


enter image description here I am using an extension for creating flutter class and I want to use equatable with it but it seem like it doesn't support nullable, is there a way to use it or do I have to use the generate equatable that the extension provide.


Solution

  • props accept nullable data, change like

      List<Object?> get props => [];