# Importing a library in Dart
import 'URI'
import 'dart:io' import 'package:lib1/libfile.dart'
import 'package: lib1/lib1.dart' show foo, bar; // Import only foo and bar. import 'package: mylib/mylib.dart' hide foo; // Import all names except foo
# Commonly used libraries
dart:io | File, socket, HTTP, and other I/O support for server applications. This library does not work in browser-based applications. This library is imported by default. |
dart:core | Built-in types, collections, and other core functionality for every Dart program. This library is automatically imported. |
dart: math | Mathematical constants and functions, plus a random number generator. |
dart: convert | Encoders and decoders for converting between different data representations, including JSON and UTF-8. |
dart: typed_data | Lists that efficiently handle fixed sized data (for example, unsigned 8 byte integers). |