{

Welcome to my blog !


Dart| Flutter How to: Read pubspec.yaml attributes (version) with examples

December 1, 2022 ·  1 min read

This tutorials explains about how to read pubspec.yaml file in example. pubspec.yaml file contains following things name: dartapp description: >- dart example application. version: 1.0.0 environment: sdk: '>=2.10.0 <3.0.0' dependencies: ini: ^2.1.0 jiffy: ^5.0.0 quiver: 3.0.1+1 yaml: ^3.1.0 yaml_writer: 1.0.1 image: any mime: any path: any package_info: any dev_dependencies: intl: any How to read pubspec.yaml file in Dart This tutorials is about to read puspect.yaml file and print the content....

Dart| Flutter How to: multiple ways to Remove an element or object from a List with Example

December 1, 2022 ·  3 min read

This tutorial shows you multiple ways to remove elements from a list with examples in dart Dart List remove element examples List class inbuilt methods remove use remove method: List class has a remove method, that removes elements with given input elements. It decreases the size of the list. bool remove(Object? value) It accepts an element. It removes an element, returns true, if the element is removed from the list, else false is returned....

Dart| Flutter How to: Multiple ways to get the First and last letter of a string

December 1, 2022 ·  2 min read

This tutorial shows you multiple ways to get the First and Last Letters of a Given input string. The string is a group of characters enclosed in single or double quotes. How to get the First Letter of a string in Dart and Flutter There are multiple ways we can get the first letter of a string. using index syntax: index in string always starts with zero and end index is a string....

Dart| Flutter How to: Multiple ways to clone or copy a List with examples

December 1, 2022 ·  4 min read

A clone is a copy of an object. Let’s create a list in dart. List original = [1, 2, 3]; It does the following things during list object creation. Create a variable for the list i.e. object list data is stored in the memory location Object(original) has a reference to memory location In general, Clone is of two types. Shallow Clone: In this copy process, data exists in the same location of memory location, but creates two references pointing to the same memory location....

Dart| Flutter How to: Insert an element at beginning of a List with Example

December 1, 2022 ·  1 min read

This tutorial shows how to insert the data at beginning of a list with examples in dart List inserts the elements in the insertion order. In the below program, add method inserts the elements to the end of a List. void main() { List wordsList = ['one', 'two', 'three']; wordsList.add("five"); print(wordsList); } Output: [one, two, three, five] Dart List insert at the beginning with examples List insert method provides inserting an element at the index position....

Subscribe
You'll get a notification every time a post gets published here.