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!
Watch video Using Mixins in Dart - Learn Basics of Dart and Flutter - Tutorial online without registration, duration hours minute second in high quality. This video was added by user FlutterED - Learn Flutter and Dart 08 March 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 101 once and liked it 9 people.