using a split method in dart code example
Example: dart array split
var string = "Hello world!";
string.split(" "); // ['Hello', 'world!'];
var string = "Hello world!";
string.split(" "); // ['Hello', 'world!'];