In the last video we introduce the concept of a class and object and explored how to assign properties/attributes to them. In this video we will deepen our study on this subject by exploring how to create methods (functions) inside of a class and access them using method chaining, as well as explore some other very valuable Dart knowledge including how to catch errors with the try / catch bloc, how to use some of the built in List methods including indexWhere and singleWhere. There is a LOT of knowledge here for an aspiring Flutter and Dart engineer, so be sure to take your time and absorb all of these concepts!
00:00 - Introduction
00:15 - Class and Object Quick Definition Review
1:09 - Defining the "Person" Class
2:08 - Adding a Method to a Class
03:33 - How to Use a Method From a Class
04:32 - A Better Way of Accessing an Entry a List
05:40 - Using the indexWhere List method
07:03 - Using the singleWhere List method
08:00 - Handling Errors in Dart
09:48 - The Try Catch Block
11:45 - Adding More Methods
13:07 - The += Shorthand
13:13 - Testing the Try Catch Block
14:46 - Functions to Reuse Code
15:58 - Notes on Function Scope
17:13 - The Power of Method Chaining
18:44 - Method Chaining Overdrive Example
19:17 - Lesson Recap
En esta página del sitio puede ver el video en línea Dart Object Oriented Programming - Methods and More - Dart/Flutter Tutorial de Duración hora minuto segunda en buena calidad , que subió el usuario FlutterED - Learn Flutter and Dart 03 marzo 2023, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 171 veces y le gustó 7 a los espectadores. Disfruta viendo!