Using Mixins in Dart - Learn Basics of Dart and Flutter - Tutorial

preview_player
Показать описание
Mixins are a core piece of Dart functionality that allow you to share code between classes in a manner that is more flexible than traditional class inheritance / extension. Learn what Mixins are, how to use them, and how they fit into the world of Dart. Remember, Dart is the programming language that underlies Flutter so everything learned in this video applies to the Flutter framework as well!

00:00 - Introduction
00:38 - Definition of a Mixin in Dart
00:57 - Defining a Mixin in Code
01:15 - What Can a Mixin in Dart/Flutter Do?
01:37 - Example of Mixin Use
02:07 - Defining the Device Parent Class
02:52 - Extending the Device Class
04:20 - Adding Functionality to the Subclasses
05:31 - Integrating a Mixin
06:17 - The "On" Syntax for Mixins
07:53 - Second Mixin Example
10:39 - Review of What We've Learned6

Thanks for joining me for another really-fun educational video on Dart and Flutter. Please, let us know if there's anything you'd like a video about or if any questions you have. Otherwise, I'll see you next time!
Рекомендации по теме
welcome to shbcf.ru