import AAA show aaa
を使うと、 AAAというパッケージから、aaaというオブジェクトだけをimportできます。
python でいう、 from AAA import aaa
と同じだと認識しています。
例:
import 'dart:convert' show JSON;
この記述の利点としては、 コード中のオブジェクトが、どのパッケージにあるかがすぐわかる ことだと思います。
More than 5 years have passed since last update.
import AAA show aaa
を使うと、 AAAというパッケージから、aaaというオブジェクトだけをimportできます。
python でいう、 from AAA import aaa
と同じだと認識しています。
例:
import 'dart:convert' show JSON;
この記述の利点としては、 コード中のオブジェクトが、どのパッケージにあるかがすぐわかる ことだと思います。
Register as a new user and use Qiita more conveniently