I am confusing some string conversion in dart.
for example = String Stringsample = "['2022-11-24', '2022-11-30']";
Stringsample is String, not a List, so i want to get two item in this String, how to do that,
Expecting output be like:
String str1 = '2022-11-24',
String str2 = '2022-11-30',
How to do that, i am stucking this conversion, Please add your valuable replays
3
Answers
Here are three examples:
Try the following code:
Unlike the above people, there is also a way to use regular expressions (I think this is better).