On the death of an agent who is a member of an agency partnership, the surviving spouse and children, if any, of the deceased partner, or a trust for the surviving spouse and children, may share in the profits of the agency partnership during the lifetime of the surviving spouse or children, as the case may be, as provided by:
(1) a written partnership agreement; or
(2) in the absence of a written agreement, an agreement by the surviving partner or partners and the surviving spouse, the trustee, and the legal representative of the surviving children.