Dart

Dart and Flutter

Dart Random number in a range

Dart language offer Random class to generate a random result of boolean, int, and double value. The usage is very simpl...
Dart and Flutter

Parse Json into a Dart class object

When calling an API via HTTP, the response is generally JSON format. To handle the response, we need to know how to par...
Dart and Flutter

Flutter Failed to start DevTools: Dart DevTools exited with code 255

The error described on the title occurred after I updated SDK tools by "sdkmanager --update" command. How to check L...
Dart and Flutter

Dart Handling the length after decimal point

How to show minimum digit after decimal point If a value data type is double and printed, it includes a decimal poin...
Dart and Flutter

Dart DateTime handling

DateTime is very common in programming languages. We should know the basics to handle the date-time and show it correct...
Dart and Flutter

Dart Compare two objects – how to deep equal

This article explains how to compare two objects in Dart. How can we implement if we want to do deep equal? What is the good way to override hashCode and == operator?
Dart and Flutter

Dart – how to assign int/String values to enum

Dart supports only the simplest case on enum and its index always starts from 0. However, we often want to assign value...
Dart and Flutter

Dart – Understanding Class Initialization Order

I wrote simple code to understand class initialization order. Dart offers late keyword to check null at runtime instead...
Dart and Flutter

Dart compiler doesn’t recognize if a variable is non-null value

Dart compiler doesn't recognize even though null check logic exists before using the variable. It took me a while to un...
Copied title and URL