I'm quite new to Flutter and Dart, and I have some troubles understanding how to rewrite a class extending an updated version of Equatable.
This works with Equatable 0.4.0:
abstract class Failure extends Equatable {
Failure([List properties = const<dynamic>[]]) : super(properties);
}
However, updating to Equatable 1.0.2 throws an error at super(properties)
:
Too many positional arguments: 0 expected, but 1 found.
Try removing the extra arguments.
I don't understand how to pass over properties
to the super constructor with Equatable 1.0.2