Shore power charger or not?
Is there a standard?
In a motorboat, a shore power charger is good to have as a backup when something has gone wrong. In a sailboat, it can be part of the charging solution.
All boat owners should strive to be self-sufficient. It makes life on board more comfortable and secure. So how do you achieve that? You make sure that the battery bank is large enough for your consumption needs, and you make sure to charge continuously with solar panels and/or a wind turbine. For a sailboat, the above is really a given, since they do not run the engine and charge that way in the same manner as a motorboat.
The shore power charger should not be something you have to rely on. As soon as you come to a dock and connect to shore power, you risk galvanic corrosion, because there is sometimes a voltage drop in the outlets on the dock since the grounding rod is located far up on land.
However, it does no harm to bring a galvanically isolated shore power charger with you just in case. Usually, the smallest shore power chargers are sufficient for motorboat owners, while a sailboat owner should have a somewhat more powerful charger that can support-charge the battery bank when needed.