xxxxxxxxxx
///---"library aliases"
/*
It’s a way to reference the
contents of a library under a different name.
*/
/// Contains a class called 'MyClass'
import 'package:libraryOne.dart';
// Also contains a class called 'MyClass'
import 'package:libraryTwo.dart' as second;
/// main
void main() {
/// Uses MyClass from libraryOne
var one = MyClass();
///Uses MyClass from libraryTwo.
var two = second.MyClass();
}
/// You can selectively import or exclude types using the show and hide keywords:
• import 'package:libraryOne.dart' show MyClass; /Imports only MyClass and discards all the rest.
• import 'package:libraryTwo.dart' hide MyClass;/ Imports everything except MyClass.