Dartの標準ライブラリの紹介
import 'dart:xxx';
dartファイルを絶対パスで導入する
import 'xxx/xxx.dart';
Pub パッケージ管理ウェアハウスのライブラリを紹介しますhttps://pub.flutter-io.cn/
import 'package:xxx/xxx.dart';
カラー、color2 のみをインポートします
import 'xxx' show color,color2
カラーに加えて輸入されています
import 'xxx' hide color
ライブラリ名に競合がある場合は、as を使用して名前を付けます。
import 'xxx' as color3
ライブラリ名を定義する
library xxx;
ファイルがライブラリに属していることを示します
part of xxx;