I am a beginner in flutter how do i convert list of string into int. Below is the example code
var data="18:00";
List<String> dataList = data.split(':');
print(datalist[0]);
print(datalist[1]);
Output will be 18 and 00 under 18, so how do i get this 18 and 00 in int type.
int.parse(datalist[0]);