useTransitions method

void useTransitions({
  1. Key? key,
  2. required List dependencies,
  3. required Widget builder(
    1. Niku niku,
    2. List dependencies
    ),
  4. Duration duration = const Duration(milliseconds: 200),
  5. Curve curve = Curves.linear,
})

Implementation

void useTransitions({
  Key? key,
  required List dependencies,
  required Widget Function(Niku niku, List dependencies) builder,
  Duration duration = const Duration(milliseconds: 200),
  Curve curve = Curves.linear,
}) {
  _add(
    (w) => NikuAnimateds(
      builder: builder,
      dependencies: dependencies,
      duration: duration,
      curve: curve,
      child: w,
    ),
  );
}