Line an 8-inch square pan with parchment, leaving overhang on two sides, and lightly grease the pan. Preheat the oven to 325°F.
In a small cup, stir the ground flaxseed with the warm water. Let stand 8–10 minutes until thickened.
Whisk together the flour, baking soda, and salt in a medium bowl to evenly distribute the leavener.
In a large bowl, mash the bananas until very smooth. Whisk in the brown sugar and granulated sugar until glossy and combined.
Whisk the melted, cooled butter, vanilla, and apple cider vinegar into the banana mixture. Scrape in the thickened flax mixture and whisk to blend.
Switch to a spatula and fold the dry ingredients into the wet in two additions, mixing just until no dry streaks remain. Let the batter rest for 10 minutes to hydrate for a more tender crumb.
Spread the batter into the prepared pan, smooth the top, and firmly tap the pan on the counter 2–3 times to release large air bubbles. Bake for 38–45 minutes, rotating the pan once halfway, until the center springs back and a tester comes out with just a few moist crumbs.
Cool in the pan for 15 minutes, then use the parchment overhang to lift the cake to a rack. Cool completely before frosting.
For the frosting (optional): Beat the softened butter with the vanilla, cinnamon, allspice, maple syrup, and a pinch of salt on medium speed for 2–3 minutes until light and creamy.
Gradually mix in the powdered sugar in 3 additions on low speed. Increase to medium and beat until fluffy, 1–2 minutes, adding milk a teaspoon at a time until it’s spreadable. Swirl over the cooled cake and slice.