This video is part of the Dart Crash Course playlist on RU-vid. See the entire playlist here: • Dart Crash Course
Welcome to Dart Crash Course. Dart is a beautiful and modern programming language that can be used both for frontend and backend applications. In this course, we will focus on Dart as a programming language without blending in any other frameworks such as Flutter.
In this video we will have a look at functions and different types of return values and parameters/arguments that can be passed to them. We will also look at inline functions, which are also sometimes referred to as closures in other languages and how functions are first-class citizens in Dart.
Timestamps:
00:00 - Intro
01:56 - Anatomy of a Function
04:24 - Omitting Return Types
07:23 - Dynamic Return Types
09:00 - No Return Values
10:53 - Named Parameters
15:37 - Default Value for Named Parameters
19:21 - Non-Optional Named Parameters with Default Values
20:51 - Required Named Parameters
23:36 - Optionality of Required Named Parameters
26:28 - Ordering of Named Parameters
29:35 - Positional Parameters
32:49 - Optional Positional Parameters
38:54 - Mixing Various Parameter Styles
41:38 - The Return Keyword
44:14 - Functions as First Class Citizens
50:58 - Returning Functions from Functions
Join the discord group if you have any questions: / discord
The GitHub repository for this course can be found here: github.com/van...
Join my RU-vid channel to support me: / vandadnp
Also please follow me on Twitter and LinkedIn to stay up to date:
/ vandadnp
/ vandadnp
14 авг 2024