FadeIn constructor

const FadeIn({
  1. Key? key,
  2. FadeDirection fadeDirection = FadeDirection.startToEnd,
  3. double offset = 1.0,
  4. AnimationController? controller,
  5. Duration? duration,
  6. Curve curve = Curves.easeOut,
  7. required Widget child,
})

Implementation

const FadeIn({
  Key? key,
  this.fadeDirection = FadeDirection.startToEnd,
  this.offset = 1.0,
  this.controller,
  this.duration,
  this.curve = Curves.easeOut,
  required this.child,
})  : assert(controller == null && duration != null ||
          controller != null && duration == null),
      assert(offset > 0),
      super(key: key);