dart-backend / angel

A polished, production-ready backend framework in Dart for the VM, AOT, and Flutter.
https://github.com/dukefirehawk/angel
BSD 3-Clause "New" or "Revised" License
171 stars 22 forks source link

Null-safe at Getting started #59

Closed devnullsp closed 1 year ago

devnullsp commented 2 years ago

I found problems with documentation samples: At Getting started:

var name = req.bodyAsMap['name'] as String; if (name == null) {

Give on error about null isnt a String.....

I changed by:

String? name = req.bodyAsMap['name']; if (name == null) {

Sorry i writed at chat but no response.... TIA.

dukefirehawk commented 2 years ago

The document is a bit outdated after the migration to null-safety and some of the latest ongoing work. We will be revising the document soon for version 6.0.0. is stable. In the meantime, if you find anything that is not working as expected, this a good place to raise it as we track the progress. The discussion forum is fine too.

dukefirehawk commented 2 years ago

Angel3 Guide - Getting Started has been updated.

dukefirehawk commented 1 year ago

Updated and moved Getting Started to tutorial section at https://angel3-docs.dukefirehawk.com/tutorial/getting-started