duration property

  1. @override
double? get duration
override

How long this controller takes to complete, if known. double.infinity if it never completes on its own.

Implementation

@override
double? get duration {
  var total = 0.0;

  for (final child in children) {
    final childDuration = child.duration;
    if (childDuration == null) return null;
    total += childDuration;
  }

  return total;
}