Skip to main content

What’s New in Dart 2.3?

Hybrid mobile applications came into existence in 2011 with the signature products, namely Xamarin SDK with C#, which this platform revolutionary, since then. After this, many hybrid mobile applications were introduced in the market to ease the lives of coders to write one code for many platforms.
Later, Google turns to put its finger in the pie with Flutter! In the year 2017, Google released it’s first-ever Flutter 1.0 version, after keeping it in beta mode for 18 months.

What is Dart?

Dart is a programming language used for coding apps in Flutter, which is also considered as another product by Google released in the same year.
With the evolving trends, it is important that companies update and offer something new to their users to maintain that spark in the relationship. That’s what Google did by upgrading Dart and recently released Dart 2.3!
This actually comes with a new set of new changes in the library as well as language. However, Google entirely focused on the Collections part with an aim to make Collections more expressive and declarative.

How to explore these new features and changes in Dart 2.3?

Here’s the list of significant changes in the Dart 2.3, in brief:

1. The Spread operator (…)

As per the image, consider the following list of text widgets.
Dart 2.3
Earlier, when you have to add all these to a ROW widget, you normally do something like this:
Dart 2.3
The issue with this technique was that if you wanted to add Asian countries first and then add North American countries, you would have to first include Asian countries in a row, somewhat like this:
Dart 2.3
This ultimately demands you to reorder the Addall methods to your list, which is not convincing and ideal at all.
But now, enter the new Spread operator to achieve the above results seamlessly:
Dart 2.3
Further, this can be simply reordered like so:
Dart 2

2. Utilizing “if” in a Collection

The all-new Dart 2.3 enables you to utilize if/else statements in Collection literals without any hassle. For example, look at the following “pre-Dart 2.3” image where we put on view Asian countries, only if the user is exactly from an Asian country:
pre-Dart 2.3
But with the new version of Dart this how you could go about doing things:
Dart
This makes content more readable and clear for every flutter development company.

3. Utilizing “for” in a collection

Suppose you want to revise your “European countries list” before utilizing the list anywhere. To exhibit the new Dart feature, let’s just prepend “new” before all the countries. Things were something like this before Dart 2.3 arrived to take this step:
Dart
And this how you will do in all new Dart 2.3:
New Dart 2.3
There are some more changes in the tool aspect of Dart 2.3, let’s take a look at them as well:
Dartfmt:
  • Twists set literal formatting to follow other collection literals
  • Add support for “UI code” features
  • Accurately formats irregular commas in assertions
  • Improve serration of adjoining strings in argument lists
Linter:
The linter is updated to 1.0.86 that includes the following changes:
  • Added the following lines: prefer_inlined_adds, prefer_if_elements_to_conditional_expressions, prefer_for_elements_to_map_fromIterable, diagnostic_describe_all_properties.
  • Updated “file names” to omit prefixed extension Dart files
  • Fixes false positives in “unnecessary parenthesis”
Pub client:
  • Added a Changelog validator that grumbles if you “pub publish” without mentioning the up-to-date version
  • Eliminated validation of library names when doing “pub publish”
  • Added support for “pub goal activate” package from a custom pub URL
  • Added subcommand: “pub logout” that log you out of the current session
Dart Native:
Primary support for compiling Dart apps to native machine code has been added and two new tools have been added to “Bin” folder of the Dart SDK:
  • “Dart2aot”: AOT (ahead of time) compiles a Dart program to native machine code and also runs on Windows, MacOs, and Linux.
  • “Dartaotruntime”: It is a small run time used for performing an AOT compiled program.

Conclusion



These are some of the prominent changes and features introduced by Google in Dart 2.3. However, if you are planning to hire Flutter app developers for your business, then your search ends here! We at Concetto Labs company offers a wide range of app development services worldwide, enabling you to focus on core business aspects. For more details, you can visit our website: www.concettolabs.com
Originally Published By Concetto Labs > What’s New in Dart 2.3?

Comments

Popular posts from this blog

How Much Does It Cost To Hire An App Developer In 2019?

It is considered a very important question that how much it effectively costs for the purpose of hiring an app developer and that too in the year 2019. Nowadays, due to the rising trend, it is very important to hire iPhone developer. Also, it seems that each business, as well as every brand, has its own app in the year 2019. In that way, you can also hire iPhone app developer India. Even, there are many of the local coffee shops which possess an app for the purpose of ordering a frappuccino available at your doorstep or you can collect it on discounts. For developing these apps, sometimes it becomes very important to preferably hire iPhone programmer. There is a gradual presence of many of the IT entrepreneur who is usually making a fortune from a hit app. So, here are given some of the ever-actual issues of how to  hire iPhone app developer  for the development purpose. We will preferably talk about some of the important as well as general tips which can prove helpful to hire io

Engagement Models For Laravel Application Development

  In the mobile app, the development backend holds prime importance. It has a trusted and dependable technology that would take good care of your backend operations with ease. For this purpose, Laravel creator said, “we want to simplify the development process”. Today the Laravel 5.4 is the latest released version that enforces the same ideology with new features. Leverage the best Laravel application development service & create a well-tailored web app. Hire a Laravel development company to scale business growth. Laravel provides predefined architecture and customized backend logic to stand out differently from the crowd. Hire Laravel developers in India and choose the company that understands your needs. We are one of the best leading web application development companies in India. We offer a wide range of engagement models that suits our customer’s needs. Let’s dive into understanding the engagement models in a better way. What are engagement models? An engagement model is a

5 Features while Developing On-Demand ‘Mover n Packers’ App like Uber Movers

Peeping into a few years back, though there were mobiles trending, mobile apps were more limited towards messaging and gaming, but a year or two year back scenario depicts a different story in all. On-demand applications that can be for Food or say Cab Booking or for Salon or for the  Guard booking app  for the event, anything, and everything can be covered in the app itself. UBER is considered more of as a BRAND instead of just an app to book the cab. It has widespread its scope beyond the app in various fields across the globe. Along with the services of moving human from one destination to another, not just limiting to that, Uber is even into Movers and Packers, namely Uber Movers. According to the report, “UberMovers provides free and professional moving services for up to ½ an hour for students in Atlanta between 9 a.m. to 2 p.m. on Saturdays only”. Similar moving services, it provides in Nashville even. Eventually, it is spreading its wings further too. Are you the one prov