If it's anything like my experience with small 2 stroke motors there is also the cost in time (and parts like gaskets, primer bulbs, hoses, etc) to take apart the carburetor and mess with it every time I end up using the thing and forget to flush it out. Spark plug, points (in older stuff), recoil starter, reed valves, all things I have had to mess with at one point or another. Then there is acquiring and storing fuel and oil, disposing of stale fuel, cleaning up spilled/leaked fuel, and the environmental and noise pollution of small 2 stroke motors. They have their place, I do love classic 2-stroke outboard motors but for small tools like string trimmers and blowers, even my lawnmower (small yard) I have replaced mine with electric and got rid of the gas ones years ago. For heavy duty chainsaws I don't think there are electric options yet but I don't have or need one of those personally.
Batteries are cheap, ~$50 or so, lasts at least a couple years, then replace it when it starts to get worn. They're only getting cheaper and more powerful. The electric tools are quiet and clean, no stinky exhaust or messy fuel, no tinkering, just slap in a fresh battery and go. I can't see myself ever buying another gas powered tool again other than maybe a classic fixer-upper if I'm feeling nostalgic. I've been using the same cordless drill now for over 15 years, I had the original battery packs re-celled about 5 years ago and those are still going strong. In another 5 years I'll probably have them re-celled again.