mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Mention typedefs in the sky dart style guide.
TBR=jackson Review URL: https://codereview.chromium.org/1178523005
This commit is contained in:
parent
4806a4cc04
commit
7fce9b4bdb
@ -17,10 +17,11 @@ output of the analyzer unless you've filed a bug with the Dart team.
|
||||
Use assert()s liberally.
|
||||
|
||||
|
||||
Classes and Enums are named UpperCamelCase. Everything else (methods,
|
||||
fields, variables, constants, enum values, etc) is lowerCamelCase.
|
||||
Global double and string constants are prefixed with k. Prefer using a
|
||||
static const in a relevant class than using a global constant.
|
||||
Types (i.e. classes, typedefs (function signature definitions) and
|
||||
enums) are named UpperCamelCase. Everything else (methods, fields,
|
||||
variables, constants, enum values, etc) is lowerCamelCase. Global
|
||||
double and string constants are prefixed with k. Prefer using a static
|
||||
const in a relevant class than using a global constant.
|
||||
|
||||
Don't name your libraries (no ```library``` keyword). Name the files
|
||||
in ```lower_under_score.dart``` format.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user