So i have some class that is wrap with array caled screenData, and i want to pass indexTheme to each of these class.
int indexTheme = 1;
final screenData = [
const homeTest(),
const productPage(),
const trading(),
const inventoryPage(),
const masterPage(),
const financePage(),
];
i can simply just pass data like this, but in the future i want to change value of int.
int indexTheme = 1;
const homeTest(
indexTheme = 1;
),