UiWidget constructor

const UiWidget({
  1. Key? key,
  2. Duration? duration,
  3. Curve? curve,
  4. VoidCallback? onEnd,
  5. Widget? child,
})

Creates a SingleChildWidget compatible with Ui.children.

Typically returns a Widget, or ImplicitlyAnimatedWidget if duration is present.

Implementation

const UiWidget({
  super.key,
  this.duration,
  Curve? curve,
  this.onEnd,
  super.child,
}) : _curve = curve;