Extensions in Dart - Learn How to Extend the Functionality of New and Existing Types with Extensions

Vandad Nahavandipoor December 21, 2022
Video Thumbnail
Vandad Nahavandipoor Logo

Vandad Nahavandipoor

View Channel

About

Come and learn Flutter/Dart + Rust + Swift/SwiftUI + Python/Django + JavaScript/TypeScript + Node.js + Express

Video Description

This video is part of the Dart Crash Course playlist on YouTube. See the entire playlist here: https://www.youtube.com/playlist?list=PL6yRaaP0WPkVLSOchfoIA0ZXySz4eSYV2 Welcome to Dart Crash Course. Dart is a beautiful and modern programming language that can be used both for frontend and backend applications. In this course, we will focus on Dart as a programming language without blending in any other frameworks such as Flutter. In this video we will have a look at creating extensions that can help us write better code, on existing and new data types. This chapter blends in the concept of extensions together with generics so I highly recommend that you watch the previous chapters first, specifically the chapters about generics and collections. Timestamps: 00:00 - Intro 02:23 - Extending String 05:45 - Sum of Iterable 11:00 - Range on int 17:08 - Finding Duplicate Values in Iterables 20:05 - Finding and Mapping Keys and Values on Map 29:47 - Extending Enums 31:59 - Extending Functions 35:17 - Extension Overrides Join the discord group if you have any questions: https://discord.gg/evXCsqxQnC The GitHub repository for this course can be found here: https://github.com/vandadnp/youtube-course-dart-crash-course-public Join my YouTube channel to support me: https://youtube.com/c/vandadnp/join Also please follow me on Twitter and LinkedIn to stay up to date: https://twitter.com/vandadnp https://linkedin.com/in/vandadnp

You May Also Like

Essential Steak Cooking Kit

AI-recommended products based on this video