Electric flaps wouldn't go with generators lost, and wouldn't retract L/E devices anyway.
(And just realised Nitpicker beat me to it...)
However, as somebody suggested, with flap lever signal dirupted due to fuselage damage and engines spooling down, but still providing some hydraulic pressure...