Dart Study Cards

Enhance Your Understanding with Dart Programming Concept Cards for quick learning



Dart

A programming language developed by Google, used for building web, mobile, and desktop applications.

Variables

Containers for storing data in Dart. They can hold different types of values such as numbers, strings, and booleans.

Data Types

The classification of data in Dart, including numbers, strings, booleans, lists, maps, and more.

Operators

Symbols or keywords used to perform operations on variables and values in Dart, such as arithmetic, assignment, comparison, and logical operations.

Control Flow

The order in which statements are executed in a program. Dart provides control flow statements like if-else, switch, and loops to control the flow of execution.

Functions

Reusable blocks of code that perform a specific task. They can take input parameters and return values.

Classes

Blueprints for creating objects in Dart. They define the properties and behaviors of objects.

Objects

Instances of classes in Dart. They have their own state and behavior.

Exception Handling

The process of handling and recovering from unexpected errors or exceptional situations in Dart programs. It involves try, catch, and finally blocks.

Asynchronous Programming

A programming paradigm in Dart that allows non-blocking execution of code. It is used for handling tasks that may take time, such as network requests.

Libraries

Collections of pre-written code in Dart that provide additional functionality. They can be imported and used in your programs.

Packages

Distributable units of code in Dart that contain libraries and other resources. They can be shared and reused by other developers.

Testing

The process of verifying the correctness and quality of your Dart code. It involves writing test cases and running them to ensure expected behavior.

Debugging

The process of finding and fixing errors or bugs in your Dart code. It involves using tools and techniques to identify and resolve issues.

String Interpolation

A feature in Dart that allows you to embed expressions within strings using the '${expression}' syntax.

Lists

Ordered collections of objects in Dart. They can contain objects of different types and can be modified.

Maps

Key-value pairs in Dart. They allow you to associate values with unique keys for efficient data retrieval.

Inheritance

A mechanism in Dart that allows a class to inherit properties and behaviors from another class. It promotes code reuse and hierarchy.

Polymorphism

The ability of objects in Dart to take on many forms. It allows you to use a single interface to represent different types of objects.

Encapsulation

The bundling of data and methods within a class in Dart. It provides data hiding and protects the internal state of an object.

Abstraction

The process of simplifying complex systems by breaking them down into smaller, more manageable parts. It allows you to focus on essential details.

Constructor

A special method in Dart that is used to create and initialize objects of a class. It has the same name as the class and can have parameters.

Getter

A method in Dart that is used to retrieve the value of an object's property. It is accessed like a property itself.

Setter

A method in Dart that is used to modify the value of an object's property. It is accessed like a property itself.

Static

A keyword in Dart that is used to define class-level variables and methods. They belong to the class rather than instances of the class.

Final

A keyword in Dart that is used to declare variables whose values cannot be changed once assigned. They are constants.

Async

A keyword in Dart that is used to mark a function as asynchronous. It allows the function to use the 'await' keyword to pause execution until a future completes.

Await

A keyword in Dart that is used to pause the execution of an asynchronous function until a future completes. It can only be used within an async function.

Exception

An object in Dart that represents an exceptional condition or error. It can be thrown and caught to handle exceptional situations.

Try-Catch

A control structure in Dart that is used to catch and handle exceptions. The 'try' block contains the code that may throw an exception, and the 'catch' block handles the exception.

Finally

A block in Dart that is used in exception handling to specify code that should always be executed, regardless of whether an exception is thrown or caught.

Future

An object in Dart that represents a value or error that may not be available yet. It is used for asynchronous programming and can be completed with a value or error.

Stream

A sequence of asynchronous events in Dart. It allows you to handle and process a continuous flow of data.

Import

A keyword in Dart that is used to include libraries or packages in your program. It allows you to use the functionality provided by the imported code.

Export

A keyword in Dart that is used to make libraries or packages available to other programs. It allows you to share your code with other developers.

Test Case

A specific scenario or condition that is used to verify the correctness of your Dart code. It includes input values and expected output.

Debug Console

A tool in Dart that allows you to view and interact with the execution of your program. It provides information about variables, stack traces, and more.

Breakpoint

A marker in Dart code that specifies a location where program execution should pause during debugging. It allows you to inspect the state of your program at that point.

Step Over

A debugging command in Dart that allows you to execute the current line of code and move to the next line. It is used to skip over function calls.

Step Into

A debugging command in Dart that allows you to enter a function call and continue debugging within that function. It is used to inspect the behavior of the function.

Step Out

A debugging command in Dart that allows you to exit the current function and continue debugging at the calling function. It is used to quickly move out of a function.

Conditional Breakpoint

A breakpoint in Dart code that is triggered only when a specified condition is met. It allows you to pause execution and inspect the state of your program at a specific point.

Watch Expression

An expression in Dart that is evaluated and displayed in the debug console during debugging. It allows you to monitor the value of variables or expressions.

Hot Reload

A feature in Dart that allows you to update your code while the program is running, without restarting the entire application. It helps in rapid development and testing.

Hot Restart

A feature in Dart that allows you to restart your application from the beginning, discarding the current state. It is useful for testing and debugging.

Code Coverage

A metric in Dart that measures the percentage of code that is executed during testing. It helps identify untested or dead code.

Code Refactoring

The process of restructuring existing code in Dart to improve its readability, maintainability, and performance. It involves making changes without affecting the external behavior.

Code Documentation

The process of adding comments and annotations to your Dart code to describe its purpose, usage, and behavior. It helps other developers understand and use your code.

Code Optimization

The process of improving the performance and efficiency of your Dart code. It involves making changes to reduce execution time, memory usage, and resource consumption.

Code Versioning

The practice of managing different versions of your Dart code to track changes, collaborate with others, and ensure code stability. It involves using version control systems like Git.

Code Review

The process of examining and evaluating your Dart code by other developers to identify issues, provide feedback, and ensure code quality. It helps in finding bugs and improving code readability.