Used for equality check, see EquatableMixin.
EquatableMixin
@override List<Object?> get props => [ x1, x2, color, gradient, ];