A while back I’ve started a journey called Fluttering Dart in which I explored Dart programming language fundamentals one must get in touch with, in order to build robust Flutter applications.
It’s a journey that most people with a bit of programming experience can take.
When I got to explore functions in Dart, the first thing that came to my mind to use as an example was Albert Einstein’s famous formula:
E = mc²
It states that the energy (E) can be calculated as the mass (m) multiplied by the speed of light (c) squared.
I started to search for a nice way to present the formula and translate it into a Dart function and stumbled upon this: