TranslateTransition constructor

const TranslateTransition({
  1. Key? key,
  2. Offset begin = const Offset(0, 1),
  3. required Widget child,
  4. Curve curve = Curves.ease,
  5. Duration duration = const Duration(milliseconds: 200),
  6. Offset end = Offset.zero,
  7. TextDirection? textDirection,
  8. bool transformHitTests = true,
  9. required bool visible,
})

It is a type of transition very similar to SlideTransition.

Implementation

const TranslateTransition({
  Key? key,
  this.begin = const Offset(0, 1),
  required this.child,
  this.curve = Curves.ease,
  this.duration = const Duration(milliseconds: 200),
  this.end = Offset.zero,
  this.textDirection,
  this.transformHitTests = true,
  required this.visible,
}) : super(key: key);