Загрузка страницы

Functions (With Optional & Required Parameters) - Flutter | Dart ~ Episode 1.4

Hey Coders! I like to think of functions similar to variables when coding in Dart. The difference is when creating a variable, you are storing a single piece of data to be used at a later time. When you create a function, you store an entire code block to be run later down in your code. Why store a block of code as a function instead of just running it immediately when you need it? There will be times when you need to run that section of code many times, and storing it as a function enhances its reusability, not to mention the code's overall readability. In this video, we'll examine how to make functions in Dart, accepting optional and required parameters, and lambda functions.

Check out the source code on GitHub:
https://github.com/davidtheweiss/Flutter-Season-1-Dart

❤️ Support the ongoing growth of this channel, get exclusive perks, and receive consultation on your projects! https://www.patreon.com/DavidWeissProgramming

🧑‍💻 Dart Documentation: https://dart.dev/guides

----------------------------------------------------------------------------------------------
🕒 Timestamps
0:00 Intro
0:15 What are Functions?
1:38 How to Write a Function With No Parameters
4:01 How to Write a Function With One or More Parameters/Arguments
6:30 How to Write a Function With Optional Positional Parameters
9:14 How to Write a Function With Optional Named Parameters
10:54 How to Give Default Values to Optional Parameters
12:20 Lambda Functions in Dart (aka Arrow Functions)
----------------------------------------------------------------------------------------------
Other playlists:

-------------------------------------
Flutter
-------------------------------------
Dart:
https://www.youtube.com/playlist?list=PL42xwJRIG3xDhQj15rrsAxv_TNdv9Paqa

Flutter Orientation:
https://www.youtube.com/playlist?list=PL42xwJRIG3xD4v1Xb8prXG89zZgSWND-p

-------------------------------------
Google Cloud
-------------------------------------
Compute Engine:
https://www.youtube.com/playlist?list=PL42xwJRIG3xAjjZ3tY_zrZYEhStnIofzB

App Engine:
https://www.youtube.com/playlist?list=PL42xwJRIG3xCtmOrJAQFR5sIJFKIJ9MEn

Google Cloud Orientation:
https://www.youtube.com/playlist?list=PL42xwJRIG3xBGAOjrm9iZ3N5_eP_KRc34

-------------------------------------
Apps Script
-------------------------------------
JDBC Service:
https://www.youtube.com/playlist?list=PL42xwJRIG3xCFMS4-IyAQg-9bJGx7-226

Data Studio Service:
https://www.youtube.com/playlist?list=PL42xwJRIG3xBM88UgT79HKxO_u0ze3BZL

Maps Service:
https://www.youtube.com/playlist?list=PL42xwJRIG3xAXgY2FksYt-kbKuXNmSUMA

Utilities Service:
https://www.youtube.com/playlist?list=PL42xwJRIG3xBnsGHi6fetv17uQ35NXm0S

Properties Service:
https://www.youtube.com/playlist?list=PL42xwJRIG3xDBj4s5WwO7sYUyA3H06Bjs

URL Fetch Service:
https://www.youtube.com/playlist?list=PL42xwJRIG3xDormBAHLcxorCYpHlHa_IE

Drive Service:
https://www.youtube.com/playlist?list=PL42xwJRIG3xDbvnvgWOizjX6j1jYBn0zk

Forms Service:
https://www.youtube.com/playlist?list=PL42xwJRIG3xBoKUA3zPkICMTAa_vu0QEl

Lock Service:
https://www.youtube.com/playlist?list=PL42xwJRIG3xDBPhvVrQdRi2Hdy9kMeb90

HTML Service:
https://www.youtube.com/playlist?list=PL42xwJRIG3xAafvhn9eCubEdas3I2TrNh

Document Service:
https://www.youtube.com/playlist?list=PL42xwJRIG3xBFGeUZCMubWlwrhUXDdaTA

Slides Service:
https://www.youtube.com/playlist?list=PL42xwJRIG3xBknGu3JNdJqHCiPpaVxAuY

Calendar Service:
https://www.youtube.com/playlist?list=PL42xwJRIG3xAqrGnc_o2NL4RH4jdyiHsp

Script Service:
https://www.youtube.com/playlist?list=PL42xwJRIG3xDPE35v7e83rH7Uu4g_MfmC

Gmail Service:
https://www.youtube.com/playlist?list=PL42xwJRIG3xA5pkm04CY_WVZ9lE1Ju_JH

Spreadsheet Service:
https://www.youtube.com/playlist?list=PL42xwJRIG3xBZFP5wYh-OFb-CQmjz-Rn-

Apps Script Orientation:
https://www.youtube.com/playlist?list=PL42xwJRIG3xCm6O85pd91tQxgxGcq82m4
----------------------------------------------------------------------------------------------

Видео Functions (With Optional & Required Parameters) - Flutter | Dart ~ Episode 1.4 канала David Weiss
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
8 сентября 2021 г. 4:00:14
00:14:37
Яндекс.Метрика