flip method

T flip({
  1. Duration? delay,
  2. Duration? duration,
  3. Curve? curve,
  4. double? begin,
  5. double? end,
  6. Alignment? alignment,
  7. double? perspective,
  8. Axis? direction,
})

Adds a FlipEffect that animates a 2.5D card flip rotation effect (via Transform). The effect can be horizontal or vertical. The begin and end values specify the number of "flips" (ie. half turns, 180° or 𝝅 radians) from nominal.

Implementation

T flip({
  Duration? delay,
  Duration? duration,
  Curve? curve,
  double? begin,
  double? end,
  Alignment? alignment,
  double? perspective,
  Axis? direction,
}) =>
    addEffect(FlipEffect(
      delay: delay,
      duration: duration,
      curve: curve,
      begin: begin,
      end: end,
      alignment: alignment,
      perspective: perspective,
      direction: direction,
    ));