这是indexloc提供的服务,不要输入任何密码
Skip to content

johnpryan/dart3_samples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dart 3 samples

A sample project with records, patterns, and sealed classes enabled.

Usage

Switch to the Flutter SDK's main channel:

flutter channel main
flutter upgrade

Get dependencies:

dart pub get

Samples are in the bin/ directory. To run, you must include the experiment flags:

dart run --enable-experiment=records,patterns bin/records.dart 

Analysis options

This prjoect contains an analysis_options.yaml configured already, but if you would like to try records and patterns in your own projects, you can add them to the enable-experiment section:

analyzer:
  enable-experiment:
    - records
    - patterns

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages