duration property

  1. @override
double? get duration
override

Total duration of the effect. If the duration cannot be determined, this will return null. For an infinite effect the duration is infinity.

Implementation

@override
double? get duration {
  var totalDuration = 0.0;
  for (final controller in children) {
    final d = controller.duration;
    if (d == null) {
      return null;
    }
    totalDuration += d;
  }
  return totalDuration;
}