diff --git a/README.md b/README.md index 2a63aad4..388b859b 100644 --- a/README.md +++ b/README.md @@ -322,7 +322,7 @@ class EquatableDateTimeSubclass extends EquatableDateTime { ]) : super(year, month, day, hour, minute, second, millisecond, microsecond); @override - List get props => super.props..addAll([century]); + List get props => [...super.props, century]; } ```