Dart: Convert Map to Query String and vice versa

June 9, 2021 A Goodman

This article shows you how to turn a given map into a query string and parse a given query string into a map in Dart (and Flutter as well) without using any third-party packages. Convert a…

Dart: Find List Elements that Satisfy Conditions

May 18, 2021 Guest Contributor

When developing apps with Flutter and Dart, you’ll be working a lot with lists. One of the most common tasks when working with lists is finding elements that satisfy single or multiple conditions. This article walks…

Conditional (Ternary) Operator in Dart and Flutter

May 18, 2021 Guest Contributor

This article is a deep dive to Conditional (ternary) operator in Dart and Flutter. The Basic The conditional (ternary) operator is the only Dart operator that takes three operands: a condition followed by a question mark…

2 Ways to Create Multi-Line Strings in Dart

May 17, 2021 Pennywise

This short aritcle shows you two ways to create multi-line strings in Dart (and Flutter as well). Using Triple Quotes Both triple-single-quote (”’) and triple-double-quote (“””) work fine. Example: Output: Note that anything between the starting…

Sorting Lists in Dart and Flutter (5 Examples)

May 21, 2021 Pennywise

In this article, we’ll walk through a couple of examples of sorting lists in Dart (and Flutter as well), a common task that you may have to deal with in the vast majority of your projects….

Flutter & Dart: Get File Name and Extension from Path/URL

April 2, 2021 Pennywise

This article shows you how to retrieve the name and extension of a file from a file path or a web URL in Dart (and Flutter as well). In order to get the job done, we…

How to check your Flutter and Dart versions

March 31, 2021 A Goodman

This short article is about checking Flutter SDK and Dart SDK versions that are installed on your computer. In addition, you’ll also learn how to upgrade your Flutter SDK, find out which Flutter channel is being…

Understanding Typedefs (Type Aliases) in Dart and Flutter

March 30, 2021 Pennywise

Flutter and Dart have gotten better and more popular recently. Many new features and improvements have been added. In this article, we’ll explore typedefs in Dart (also known as type aliases) and go through a few…

2 ways to remove duplicate items from a list in Dart

December 3, 2020 A Goodman

This article shows you 2 approaches to remove duplicate items from a list in Flutter. The first one works well for a list of primitive data types. The second one is a little bit more complex…

How to remove items from a list in Dart

November 23, 2020 A Goodman

One of the most common tasks you encounter while working with a list in Dart is removing its items. Similar to various programming languages, Dart has some built-in functions that help us get this matter done…

Dart regex to validate US/CA phone numbers

November 19, 2020 A Goodman

Validating phone numbers is a common task when making Flutter applications. Before sending an SMS with a verification code (that usually costs real money), we should implement some basic checks. In this article, we’ll use a…

How to check numeric strings in Flutter and Dart

November 11, 2020 A Goodman

A numeric string is just a number in string format. Examples of numeric strings: To check whether a string is a numeric string, you can use the double.tryParse() method. If the return equals null then the…

1 2 3 4