Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Flutter for Beginners

You're reading from   Flutter for Beginners An introductory guide to building cross-platform mobile applications with Flutter and Dart 2

Arrow left icon
Product type Paperback
Published in Sep 2019
Publisher Packt
ISBN-13 9781788996082
Length 512 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Alessandro Biessek Alessandro Biessek
Author Profile Icon Alessandro Biessek
Alessandro Biessek
Arrow right icon
View More author details
Toc

Table of Contents (21) Chapters Close

Preface 1. Section 1: Introduction to Dart
2. An Introduction to Dart FREE CHAPTER 3. Intermediate Dart Programming 4. An Introduction to Flutter 5. Section 2: The Flutter User Interface - Everything is a Widget
6. Widgets: Building Layouts in Flutter 7. Handling User Input and Gestures 8. Theming and Styling 9. Routing: Navigating between Screens 10. Section 3: Developing Fully Featured Apps
11. Firebase Plugins 12. Developing Your Own Flutter Plugin 13. Accessing Device Features from the Flutter App 14. Platform Views and Map Integration 15. Section 4: Advanced Flutter - Resources to Complex Apps
16. Testing, Debugging, and Deployment 17. Improving User Experience 18. Widget Graphic Manipulations 19. Animations 20. Other Books You May Enjoy

Introduction to OOP in Dart

In Dart, everything is an object, including the built-in types. Upon defining a new class, even when you don't extend anything, it will be a descendant of an object. Dart implicitly does this for you.

Dart is called a true object-oriented language. Even functions are objects, which means that you can do the following:

  • Assign a function as a value of a variable.
  • Pass it as an argument to another function.
  • Return it as a result of a function as you would do with any other type, such as String and int.

This is known as having first-class functions because they're treated the same way as other types.

Another important point to note is that Dart supports single inheritance on a class, similar to Java and most other languages...

You have been reading a chapter from
Flutter for Beginners
Published in: Sep 2019
Publisher: Packt
ISBN-13: 9781788996082
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime