useAnimated<T> method

void useAnimated<T>({
  1. Key? key,
  2. required Widget builder(
    1. Niku niku,
    2. T value
    ),
  3. required T value,
  4. Duration duration = const Duration(milliseconds: 200),
  5. Curve curve = Curves.linear,
})

Implementation

void useAnimated<T>({
  Key? key,
  required Widget Function(Niku niku, T value) builder,
  required T value,
  Duration duration = const Duration(milliseconds: 200),
  Curve curve = Curves.linear,
}) =>
    $parent
      ..useAnimated(
        key: key,
        builder: builder,
        value: value,
        duration: duration,
        curve: curve,
      );