totalDuration property

double get totalDuration

Implementation

double get totalDuration {
  return switch (type) {
    RenPyTransitionType.none => 0,
    RenPyTransitionType.fade =>
      (outTime ?? 0) + (holdTime ?? 0) + (inTime ?? 0),
    _ => duration ?? 0,
  };
}