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