Dart: Operator Overloading
Imagine you have two toy boxes. If you put them together, you have one big toy box. In math, we use the + operator to add numbers together, like this: But what if we wanted to use + on our ToyBox objects? Wouldn’t it be cool if Dart understood that adding two toy boxes means […]
Dart: Operator Overloading Read More »