You can do that in different ways:
Read moreWhat is import in Dart?
Importing makes the components in a library available to the caller code . The import keyword is used to achieve the same. A dart file can have multiple import statements. Built in Dart library URIs use the dart: scheme to refer to a library.
Read more