What is a flagship? When is a smartphone called a flagship?

Flagship is a term that originated in the 18th century, originating from the maritime field to refer to the largest, fastest, most powerful ships equipped with the most modern weapons, carrying the leading commanding officer of a fleet.