OneCompiler

Dart

Learn Dart step by step — variables, control flow, collections, functions and object-oriented programming — with exercises you run in the editor.

8 sections·43 items·Beginner
This course includes
  • 49 coding problems with test cases
  • 43 lessons
  • Free — runs in your browser, no setup

What you'll learn

Write and run Dart programs
Work with variables, data types and operators
Use lists, sets and maps
Write functions, from basics to arrow and anonymous functions
Work with strings and regular expressions
Build classes with constructors, inheritance and mixins

Syllabus

About this course

Dart is the language behind Flutter, so it's the entry point if you want to build cross-platform apps — and it's a pleasant, modern language in its own right.

This course covers the language itself: variables and types, control flow, collections, functions, strings and a solid block on object-oriented programming — classes, constructors, inheritance, abstract classes, interfaces and mixins. Each topic is a short lesson followed by exercises and quizzes you complete right in the editor.

If you're coming from another language you'll move quickly through the early sections. If Dart is your first language, that's fine too — everything is introduced from scratch, one small step at a time.