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 to Hire a Full Stack Developer for Frontend Web Development?

People are often heard nowadays talking about back end and front end or sometimes the server side and the client side. The proper presentation of the data to the users is included in the frontends. The users mainly access the web through the normal browser. So, to target the end users, various technologies like JavaScript, CSS, and HTML are used. The  full stack web developer  and full stack programmer is mainly involved in the overall task of development, and so, it may be considered as the proper answer to the question, “What is full stack developer?” The backend generally, on the other hand, is much more concerned with the data aspect of a web application and also with the business logic. The 3-tier architecture For web development, there is mainly three-tier architecture which proves very much useful. Common client-server software architecture is implemented in this particular approach. Due to its huge demand, it is imperative to learn full stack web develo...

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

Top excellent Photo Editing Apps for iPhone and Android

 The photograph is always looking to capture picture-perfect images with creating memories. Using smartphones cameras offers great optics with high-resolution and sharp results. Today photographers are increasing as they click high-quality images with excellent resolution. If you’re a beginner and want to click masterpiece, the best we could recommend is to go for the best photo editing app for iPhone and Android to create a great visual strategy. One can also choose a product photography course to include photographic techniques and explain the best photo editing apps they should use. After you pick the best photo editing app, make sure it offers a comprehensive set of tools that make your photos shine. What are the best photo editing apps? After testing dozens of famous applications, we have listed below the best photo editing apps for iPhone and Android . We know that not everyone can shoot a photo with just an Android or iPhone smartphone. Therefore, here come the photo editi...