What’s New in Dart 2.3? | Concetto Labs

What’s New in Dart 2.3?

Author image By Manish Patel  |  Monday, May 13, 2019 12:55 PM  |  4 min read  |   0

Dart

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.

The Spread operator

Earlier, when you have to add all these to a ROW widget, you normally do something like this:

ROW widget

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 Adderall 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

Further, this can be simply reordered like so:

Row

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:

Utilizing “if” in a Collection

But with the new version of Dart this how you could go about doing things:

Dart 2.

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:

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

 

What’s New in Dart 2.3?

Contact Us

 

 


Author image

Manish Patel

Manish Patel is a Co-Founder of Concetto Labs, a leading mobile app development company specialized in android and iOS app development. We provide a one-stop solution for all IT related services.

Why Our Client Love Us?

  • Fast kick-off
  • Agile Ready
  • 98% Client Retention
  • 360-Degree solutions

Our integrity and process focuses largely on providing every customer the best recommendations for their respective business. Our clients become recurring customers because we always go beyond their expectations to deliver the best solutions.

Get In Touch
Mr. Sieva Savko
Customer for over 4 years Mr. Sieva Savko Norway

Concetto Labs have provided us with a tremendous amount of help. Their competence in various IT fields led to a positive outcome while facing different challenges. A lot of value was given by their helpful professional staff. To describe this company in three words: effectiveness, collaboration, trust. I would also like to personally thank Mr. Tejas Patel for his positive, friendly, and highly competent approach. The all-around support provided by him made every task at hand a no-brainer.

Miss. Caroline Jack
Customer for over 4 years Miss. Caroline Jack South Africa

It has been an absolute pleasure working with the Concetto Labs team! We have worked together on a few projects now, all of which have been successful. You can rely on good communication and response times from these guys. And they go above and beyond to ensure that the result is achieved. Because of their great service, they have become an integral part of our business and we will continue to use them going forward.

Mr. Richard Bartlett
Customer for over 3 years Mr. Richard Bartlett United States

Concetto Labs is a group of incredibly talented individuals. They are very responsive and communicate with you each and every step of the process. I worked with Manish Patel throughout the entire process and must say that I have never conducted business with a more honest and professional individual. Together with his team, Manish created www.travcentiverewards.com exactly how we envisioned it to be. Thanks for all of your hard work.

Mr. Conrad Abraham
Customer for over 2 years Mr. Conrad Abraham United States

Concetto Labs team is my go-to for any simple or complex development projects. They have risen to the challenge. Great project management, communication, and super quick turnaround. I’ve done multiple projects with them and don’t plan on changing that.

Mr. Edward Chin
Customer for over 4 years Mr. Edward Chin Canada

Concetto Labs was able to bring my complex idea to life. Throughout the project, Concetto Labs maintained constant communications and was always professional - considering I had no experience in what I wanted to create their welcoming attitude, patience, and knowledge in the field created the perfect environment to work in. I was so impressed with their work that I've kept them on board as my go-to experts. Thanks for the worthwhile experience and the breathtaking product.

Karuna Govind
Karuna Govind CTO & Co Founder (Coupay) London, UK

We started working with Concettolabs due to the influx of work on mobile (Flutter) and frontend (React.js). It's been fantastic working with them. Good, consistent communication and good quality of work means they may be our first choice for many projects to come.

GlobalClients
Good Firms Clutch App Futura Microsoft Associate Mobile App Top Developers Gesia
 

Ahmedabad

303-309, City Center, Science City Road,
Ahmedabad - 380060
 

Broomfield

2355 Prospect LN,
Broomfield CO-80023
 

Oshawa

1557 Clearbrook Dr,
Oshawa, ON L1K 2P6
 

Ilford

6 Hastings Avenue,
Ilford, IG6 1DZ, UK
 

Bodo

Lille Hunstad 4A,
8019 Bodø