flip method

Future<void> flip(
  1. double percent,
  2. double tilt
)

percent is the position for flipping at the bottom. tilt is the a of y = a*x + b(line equation).

Implementation

Future<void> flip(double percent, double tilt) {
  return _queueAction(() {
    if (_disposed) return;
    controller.beginDraw();
    _render.draw(1 - percent, tilt);
    controller.endDraw();
  });
}