Absent an agreement to the contrary, the dismissal of a statutory cause of action providing for attorneys' fees to the prevailing party ...