Skip to main content

14 docs tagged with "dart"

View all tags

Dart

Dart is the programming language used to write Flutter apps.

Dart Coding Style

Effective dart has a style guide https://dart.dev/effective-dart/style

Dart Constant

Dart can define constant within and outside class using const keyword with lowerCamelCase name.

Dart Enum

Dart's enum is similar to Java's enum, support both name and fields like other classes.

Dart Function

Dart function is object that accepts both positional and named parameters.

Dart Interface

Every Dart class has implicit interface and can also use

Dart Map

Dart Map is very similar to Java Map.

Dart New

Dart's new keyword is optional, you don't need new when creating an object. var p = Point(1, 2); is the same

Dart Private

Dart does not have a private keyword like Java. It uses the underscore _ to denote private class and methods.