flip method

void flip(
  1. Component component, {
  2. required bool horizontal,
})

Mirrors the component across its own centre, if that means anything for it — a sprite's flip flag, say.

Implementation

void flip(Component component, {required bool horizontal}) {}