A boost inductor is a two terminal inductor.
A flyback inductor is a four terminal device. It consists of a two terminal inductor with an ideal transformer connected across it.
You magnetize it just like a boost inductor. But when the inductor demagnetizes, it does it through the transformer allowing you to provide isolation and transformation.