Home Photo About Us Contact
Structuring
Apps
Flutter
Home Photo About Us Contact
DART list and
conditionals
Lists in
Dart provides List as a core collection type for storing ordered data.
Dart
Home Photo About Us Contact
Lists in Dart Explanation
• itemCount: Specifies the number of items in the list. This is
generally the length of your list (like [Link]).
• itemBuilder: A function that builds each item based on its
index in the list. You get two parameters in itemBuilder:
⚬ context – The context of the widget.
⚬ index – The index of the item being built (used to get the
corresponding item in your list).
• ListTile: A simple widget that displays a title, which in this
case is a text widget with each item in the list.
Home Photo About Us Contact
Conditionals in
Ternary
Dart: operator:
Home Photo About Us Contact
Dart Classes and Objects
Dart is an object-oriented language. Everything is an object.
Home Photo About Us Contact
Object-Oriented Dart (OOP)
Key Concepts:
• Encapsulation – bundle data & functions (e.g.,
models).
• Abstraction – hide complexity (e.g., custom widgets).
• Inheritance – reuse code (e.g., base widgets or
services).
• Polymorphism – override behavior (e.g., button with
different looks).
Home Photo About Us Contact
Dart Constructors
• Constructors initialize class objects.
• Flutter widgets use constructors heavily to customize UI elements.
Home Photo About Us Contact
Thank You