Dart

Category: Dart

  • Introduction To Null Safety In Dart

    ·

    Introduction To Null Safety In Dart

    What is Dart Null Safety? In basic terms, null safety in dart means that a variable cannot have a ‘null’ value unless it was started with null. All runtime null-dereference problems will now be shown at compile time, thanks to null safety. Dart Null Safety Code Example We constructed a class in the preceding dart…

  • Dart: Convert/Parse JSON String, Array into List/Object

    ·

    Dart: Convert/Parse JSON String, Array into List/Object

    Convert JSON String or Array into List or Object in Dart/Flutter In this dart / flutter lesson, we’re going look at how to convert/parse JSON text into Object, Nested Object, how to parse JSON array, array of JSON items into List. Finally, complicated JSON may be parsed into Nested Objects (that also contains array as…

  • Sort Lists Dart & Flutter: 5 Sort Examples Dart

    ·

    ,

    Sort Lists Dart & Flutter: 5 Sort Examples Dart

    In this article we’ll take a look at how to sort lists in Dart (and Flutter as well) in this post, which is a typical activity that you’ll encounter in the vast majority of your projects. The examples are arranged in order of difficulty, from simple to sophisticated, and cover the majority of real-life circumstances.…