1

I am using an extension name Dart data class generator and I allow it to use equatable package but for some reason it gave me this error enter image description here enter image description here The error on the import line is :"Unused import: 'package:equatable/equatable.dart'. Try removing the import directive."

Ken
  • 57
  • 6

1 Answers1

0

You forget to add props override, try this:

class BaseCustom extends Equatable {
  final int? status;
  ...

  BaseCustom({this.status, ...});
  @override
  // TODO: implement props
  List<Object> get props =>[status, and other variable];
}
eamirho3ein
  • 16,619
  • 2
  • 12
  • 23