build method

  1. @override
Widget build(
  1. BuildContext context
)

Override to build the animation.

Implementation

@override
Widget build(BuildContext context) {
  if (state.value) {
    return child;
  } else {
    return const SizedBox();
  }
}