我正在关注一个教程,并且偶然发现了这个问题。
abstract class Failure extends Equatable {
// If the subclasses have some properties, they'll get passed to this constructor
// so that Equatable can perform value comparison.
Failure([List properties = const <dynamic>[]]) : super(properties);
}
我从注释中知道这段代码的作用,但是我不知道如何。属性会插入列表吗?