Can't be done. On a "normal" bike, speeds of even 10mph will remove said floppy sun hat. They use some sort of magical recumbent physics, because the damn hats aren't even moving in the breeze as they rocket by.
You can equip yourself with one of those safety flags, though. That would be different.
__________________