Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Mastering DART
  • Table Of Contents Toc
Mastering DART

Mastering DART

By : Sergey Akopkokhyants
4.6 (5)
close
close
Mastering DART

Mastering DART

4.6 (5)
By: Sergey Akopkokhyants

Overview of this book

If you are an application developer who has experience with Dart and want to develop reusable and robust code in Dart, then this book is for you. You are expected to have a basic knowledge of core elements and applications.
Table of Contents (14 chapters)
close
close
13
Index

JsFunction and the this keyword


The this keyword refers to the current instance of a class in Dart and never changes once the class object is instantiated. Generally, we should omit the this keyword and use it only if we have name conflicts between the class members and function arguments or variables. In JavaScript, the this keyword refers to the object that owns the function and behaves differently compared to Dart. It mostly depends on how a function is called. We can't change the value of this during function execution and it can be different every time the function is called. The call and apply methods of Function.prototype were introduced in ECMAScript 3 to bind any particular object on the value of this in the call of these methods:

fun.call(thisArg[, arg1[, arg2[, ...]]])
fun.apply(thisArgs[, argsArray])

While the syntax of both these functions looks similar, the fundamental difference is that the call method accepts an argument list while the apply method accepts a single array of...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Mastering DART
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon