Dart Extensions: Full Introduction and Practical Use Cases

preview_player
Показать описание

LEVEL: BEGINNER

This tutorial is a complete introduction to Dart extensions, a language feature that was added in Dart 2.6.

INCLUDED

- How to enable extensions inside an existing Flutter project
- What extensions are, and where they can be used to improve our code
- Where they should not be used

HIGHLIGHTS

00:00 - Intro
00:32 - Enabling extensions in your Flutter project
01:56 - Example: Temperature Conversion
04:34 - Extensions with Generics
06:06 - Extending existing Flutter types
08:10 - Extensions with static methods
10:19 - Top Tips
11:36 - The DartX package
12:04 - The styled_widget package

REFERENCES

Want more? Check out all my Flutter courses: 👇👇

Thanks for watching!
Рекомендации по теме
Комментарии
Автор

UPDATE: The styled_widget package has evolved a lot since I made this video.

CodeWithAndrea
Автор

I followed up this tutorial from the begging to end with watch but also manual testing new knowledge. Amazing course to follow up, and watch even a few times :) thank You for a great work on it and waiting for a full course about implementing states and maybe provider. :)

jakubzomerfeld
Автор

Awesome video! Would you consider writing an accompanying article?

jeremyoffori
Автор

Hi i have a question here i have windows dll for to collect the meter reading from meter using optical probe flutter support windows dll ? please answer

tamiladdiction
Автор

What's the difference between mixins and extensions?

RamsesAldama