Check out example codes for "Try using 'as prefix' for one of the import directives, or hiding the name from all but one of the imports.dartambiguous_import". It will help you in understanding the concepts better.

Code Example 1

import 'package:permission_handler/permission_handler.dart' as ph;
// then use the alias
// ...
if (await ph.Permission.locationWhenInUse.serviceStatus.isDisabled || await ph.Permission.speech.isPermanentlyDenied) {
	await ph.openAppSettings();
}
// (...)

Learn ReactJs, React Native from akashmittal.com