
上QQ阅读APP看书,第一时间看更新
Callable classes, top-level functions, and variables
Dart is very flexible in terms of letting the developer take control of all of the pieces of code and, unlike many languages, there's no single way of doing something.
As Dart proposes to combine the benefits of modern OOP concepts with traditional ones, you can always choose when and where to apply different approaches.