Menu

waiting answer September 16, 2020

Why do we use "as" while importing any package. 

Why do we use "as" while importing any package. 
Eample: import 'package:http_dart/http.dart' as http;

Can't we simply import the package and use the class directly instead of writing http.get("www.facebook.com")  ?

Answers

Please Login to Post the answer

Leave an Answer