If the child is that allergic, the mother cannot honestly expect to avoid any nut exposure on a flight with a bunch of other people. The airline can say they don’t serve nuts, which is a stupid mistake because they are accepting liability, but that cannot be construed as a nut free flight. To expect that is unreasonable.
In order for it to be a nut-free flight, they would have had to deny boarding to this nut.