Flashing your badge is tied to commandeering a car. Walk up close to the driver's door of the vehicle you want and press the interaction button — Y on Xbox 360, E on PC — and your character will show his badge and take the wheel.
It is worth remembering that this is the only situation the animation triggers in. Pressing the button away from a car door does nothing, which is why people sometimes assume the feature is missing.