how can you define a namespace in DART language

In this article, i am going to explain about DART namespace.
  • 2306

Namespace in DART language

DART have namespaces, much like java packages, basically  namespace is a logical grouping of classes, namespace contain classes, interface etc.

Definition of namespace

#library("http");

Using of namespace

#library("http.dart");

Optional prefix of namespace

#library("http.dart","http");

Ask Your Question 
 
Got a programming related question? You may want to post your question here
 
© 2020 DotNetHeaven. All rights reserved.