INNER CODE UNIT · Dart

_EnemyTargetState

e200/my-flutter-challenges · air_defense_system/lib/widget.dart:333

class _EnemyTargetState extends State<EnemyTarget>
    with SingleTickerProviderStateMixin {
  late AnimationController _controller;
  late Animation<double> _animation;

  @override
  void initState() {
    super.initState();

    _controller = AnimationController(
      duration: const Duration(seconds: 4),
      vsync: this,
    );

    _animation = Tween<double>(begin: 0, end: 1).animate(_controller);

    _controller.addStatusListener((status) {
      if (status == AnimationStatus.completed) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…