inline variables dart code example
Example 1: dart string interpolation
var age = 30;
print('I am ${age} years old');
Example 2: dart spread
arr1 = [1, 2, 3];
arr2 = [...arr1, 4, 5, 6]
// arr -> [1, 2, 3, 4, 5, 6]
var age = 30;
print('I am ${age} years old');
arr1 = [1, 2, 3];
arr2 = [...arr1, 4, 5, 6]
// arr -> [1, 2, 3, 4, 5, 6]