WidgetWrappedInAnimation constructor Null safety

WidgetWrappedInAnimation(
  1. {Widget? child,
  2. TransitionType? transitionType,
  3. int? durationInMilliseconds,
  4. Curve? curve}
)

Implementation

WidgetWrappedInAnimation(
    {this.child,
    this.transitionType,
    this.durationInMilliseconds,
    this.curve}) {
  if (child == null) {
    throw Exception("ScaleUpAnimation needs child to be set");
  }
}