I'm new in using Lint and I'm getting a blue underline on my UserModel variables with a message of Don't override fields and Annotate overridden members. I'm having a hard time understanding the Good and Bad rules in the example docs. I still get the same message after adding @override.
class UserModel extends UserEntity {
final int id;
final String? uid;
const UserModel(
{required this.id,
this.uid})
: super(
id: id,
uid: uid,
);
}
//
class UserEntity extends Equatable {
const UserEntity({
required this.id,
this.uid,
this.provider,
});
final int id;
final String? uid;
static const empty = UserEntity(id: 0, uid: '');
@override
List<Object> get props => [id];
}