Find a file
Nate Bosch 9b34bee90b Add InternetAddress.tryParse
Closes #40692

Allows a better pattern for parsing user input than catching an
`ArgumentError`.

- Add a new static method to InternetAddress and implement it in all
  patch files.
- Add tests which match the tests for the constructor.

Change-Id: Idc76fc4875578f7a381219c0e7e12d1931d98fd8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/136406
Commit-Queue: Nate Bosch <nbosch@google.com>
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
Auto-Submit: Nate Bosch <nbosch@google.com>
2020-04-30 17:19:02 +00:00
.dart_tool Opt package:meta in to null safety. 2020-04-28 03:54:48 +00:00
.github
benchmarks [benchmark] Benchmark for some .runtimeType patterns from Flutter 2020-04-27 22:22:36 +00:00
build [vm] Represent tagged pointers as C++ value types instead of C++ pointer types. 2020-04-25 05:21:27 +00:00
client
docs Add doc explaining how language versioning and experiments work. 2020-03-10 20:32:31 +00:00
pkg Convert about half of LocalReferenceContributor to use the SuggestionBuilder 2020-04-30 16:58:57 +00:00
runtime [vm] Appease TSAN around access on native resolvers. 2020-04-30 16:45:04 +00:00
samples [vm/ffi] Rename members in NativeApi to not contain nativeApi 2020-03-04 15:21:55 +00:00
samples-dev/swarm Unittest is finally going the way of the dinosaurs. 2020-03-20 17:40:42 +00:00
sdk Add InternetAddress.tryParse 2020-04-30 17:19:02 +00:00
sdk_nnbd Add InternetAddress.tryParse 2020-04-30 17:19:02 +00:00
tests Add InternetAddress.tryParse 2020-04-30 17:19:02 +00:00
third_party Roll dart_style to 1.3.6. 2020-04-24 07:40:21 +00:00
tools [dart:html] Modify createFragment to take nullable html str 2020-04-30 16:50:52 +00:00
utils Revert "[BUILD] - Initial CL to unfork the NNBD Dart SDK" 2020-04-27 05:00:10 +00:00
.clang-format
.gitattributes [test] Fork mirrors tests. 2020-01-22 18:46:23 +00:00
.gitconfig
.gitignore
.gn
.mailmap
.packages DEPS: remove references to pkg:package_resolver 2020-03-26 21:41:28 +00:00
.style.yapf
.vpython
AUTHORS
BUILD.gn Revert "[BUILD] - Initial CL to unfork the NNBD Dart SDK" 2020-04-27 05:00:10 +00:00
CHANGELOG.md Add InternetAddress.tryParse 2020-04-30 17:19:02 +00:00
codereview.settings
CONTRIBUTING.md [doc] Update dartlang.org links to dart.dev 2020-04-07 17:55:55 +00:00
DEPS [release] Update checked-in SDKs to 2.9.0-4.0.dev 2020-04-28 14:20:48 +00:00
LICENSE
PATENT_GRANT
PRESUBMIT.py Fix presubmit file path comparison 2020-04-16 16:16:24 +00:00
README.dart-sdk Add dart2native to sdk README 2020-01-20 09:32:58 +00:00
README.md chore: update contributing link in readme 2020-03-18 09:25:07 +00:00
sdk_args.gni Revert "[BUILD] - Initial CL to unfork the NNBD Dart SDK" 2020-04-27 05:00:10 +00:00
WATCHLISTS Update pkg/vm patterns so pkg/vm_service doesn't match them 2020-04-02 18:46:15 +00:00

Dart

A client-optimized language for fast apps on any platform

Dart is:

  • Optimized for UI: Develop with a programming language specialized around the needs of user interface creation

  • Productive: Make changes iteratively: use hot reload to see the result instantly in your running app

  • Fast on all platforms: Compile to ARM & x64 machine code for mobile, desktop, and backend. Or compile to JavaScript for the web

Dart's flexible compiler technology lets you run Dart code in different ways, depending on your target platform and goals:

  • Dart Native: For programs targeting devices (mobile, desktop, server, and more), Dart Native includes both a Dart VM with JIT (just-in-time) compilation and an AOT (ahead-of-time) compiler for producing machine code.

  • Dart Web: For programs targeting the web, Dart Web includes both a development time compiler (dartdevc) and a production time compiler (dart2js).

Dart platforms illustration

License & patents

Dart is free and open source.

See LICENSE and PATENT_GRANT.

Using Dart

Visit the dart.dev to learn more about the language, tools, getting started, and more.

Browse pub.dev for more packages and libraries contributed by the community and the Dart team.

Building Dart

If you want to build Dart yourself, here is a guide to getting the source, preparing your machine to build the SDK, and building.

There are more documents on our wiki.

Contributing to Dart

The easiest way to contribute to Dart is to file issues.

You can also contribute patches, as described in Contributing.