dart:async library

The dart:async library delivers core capabilities for asynchronous programming in Dart: Future, Stream. Two foundational concepts: Future 1. async / await Recommended by convention; offers better readability compared to .then() …

dart:io

Reference Notice dart:io cannot be used on the Web platform!Supported targets: Dart command-line programs, server-side applications, non-Web Flutter apps (Android/iOS/Windows/macOS/Linux). File & Directory Operations FileSystemEntity is the base class. File …

dart:core Standard Library

dart:core is Dart’s standard core library that gets implicitly imported automatically. It supplies fundamental capabilities required by the language. Below you’ll find core features and sample code grouped by module. …

The dart:convert Library

Learn the core capabilities of the Dart dart:convert library. The dart:convert library provides converters for JSON and UTF-8, and also supports custom converters. JSON: A lightweight text format used to …

The dart:math Library

Dart comes with several built-in libraries that you can leverage to implement various features, including a dedicated library for mathematical operations. Common Constants Trigonometric Functions sin() cos() tan() Parameters: radians. …

Class Modifiers

Control the permissions for external libraries to inherit, implement and instantiate classes, restricting type bodies Modifier order [abstract] [base/interface/final/sealed] [mixin] class; some modifiers are mutually exclusive 1. No modifier Any …

Extension Types

Wrapped at compile time with zero additional runtime objects (zero-cost abstraction); used to assign a new set of static interfaces to existing types and restrict accessible methods. Difference from regular …

Extension methods

Extension methods let you add new functionality to existing types and third-party library types without modifying the source code of the original class. Your IDE’s autocompletion will list extension methods …

Dot shorthands

The .foo dot shorthand syntax lets you omit the type name. As long as the compiler can infer the target type from context, you can write cleaner Dart code. When …

Enums

An enumeration type is a special class used to represent a fixed set of constant values. All enums automatically inherit the Enum class. Enums are sealed types: they cannot be …