B.3. Using the packages

In any case, using packages in your Dart code is always the same. To use the library from cool_package, import it at the top of your Dart file by telling it the entry point of the package. Generally, the entry point file will mimic the name of the whole package. For example

import "package:cool_package/cool_package.dart";
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.135.191.86