Our classes and files are all defined in the main.dart file. When our code grows in size, our file will grow too. We can overcome this and make it more maintainable by implementing a library and putting all the different classes in separate files.
- [Voiceover] Welcome to the video on implementing a library…In the previous video we learned…how inheritance works in dart.…In this video we're going to take a look at…how we can use a library in our advance.…We will create a library and…put all our classes in separate files.…This will increase the maintainability of the project.…The library is a package.…Bundle of functionalities that you can depend upon…in your dart Lang application.…It makes it easier to make reusable packages…whenever you create an application, which has common codes.…
This common codes can be put in a library,…so you don't need to write this code over and over again.…Importing a library in your application is very easy.…You can do this with the imports statement…followed by dart code on library name…or whenever you need import a package that is not a part…of the SDK.…You need to start with package and then the library name,…and then starting the dart script.…Creating libraries are great for reuse-ability…and maintainability of a software project.…
Dart is a new open-source programming language for the web. It is a single language for both client and server that can be used to build large-scale web, server, and mobile applications. Stop solving new challenges with the same old tools—let Dart show you a whole new way! In this course, author Joris Hermans guides you into the wonderful world of web development with the dartlang programming language. By following along, you get a more mature sense of how to build a great application and see all the facets needed to reach that goal.
Learn the important language features of Dart, along with some advanced features such as mixins and null-aware operators. Later on, see how to use unit tests, work with browser APIs, and set up of a web server. Finally, take a look at Angular 2, a great front-end framework also built by Google.
This course provides you with everything you need to know to start or enhance your career in web development with Dart.
- Installing Dart
- Creating a basic web application with Dart
- Creating DOM interactions
- Creating classes and objects
- Implementing a library
- Using parameters, null-aware operators, and mixins
- Testing your code
- Setting up APIs
- Using Dart localStorage
- Working with AngularJS
- Troubleshooting Dart applications