I've heard this phase used all of my life to describe something that has all the options, like a new car with all the gadgets or something.
Since I have gotten interested in old electric trains, I've been thinking about the phrase and wondering it had its origination with toy trains. I know I could just "Google it" but thought it might be more fun to mention it here.