How do you get the depth of a List in flutter/ dart language, given a list like this one
List testRy = [1,2,[3,4,[5,6],7,[8,[9,91]],10],11,12];
Can you help me create something like an extension for doing that, that is callable from anywhere?
How do you get the depth of a List in flutter/ dart language, given a list like this one
List testRy = [1,2,[3,4,[5,6],7,[8,[9,91]],10],11,12];
Can you help me create something like an extension for doing that, that is callable from anywhere?
I found a solution!
Created a list extension as below:
and now I can call use it like this: