September 2019
Beginner
512 pages
12h 52m
English
In Dart, there's no namespace definition or something that uniquely identifies a library in the context that it is used, so conflicts may happen when creating identifier names; that is, libraries may define a top-level function or even a class with the same name. Although we can use the show and hide modifiers to explicitly set what members we want to import from a library, this is not sufficient for solving the issue because, sometimes, we may be interested in some class or top-level function with the same name in different libraries:

Fortunately, Dart has a way to work around this. The as keyword can be added ...
Read now
Unlock full access