How does the voltage remain constant at secondary side of flyback SMPS when secondary current is decreasing linearly with time?
Voltage does not stay constant. There will be ripple voltage that depends on the output capacitor ESR and capacitance.