There are flap positioning systems available to do what you want. Van's sells one, so does Aircraft Spruce. It involves more than a switch. You need a control unit for the switching functions and a position sensor. In some cases folks have installed limit switches to automatically shut off the flap motor. You do not need one now as you have momentary toggle switch (On)-OFF-(On) [note that the use of () indicates momentary].
If you went to a On-OFF-On switch you would need limit switches or the motor would run continuously.
Search on "flap position" and read the various threads, then look for the same on Aircraft Spruce and Vans site, as well as
www.aircraftextras.com.
There was a fellow making a controller that was a simple timer. You may see that in your search
Good luck
Don