创建指定长度的List
List<T> generate<T>(T Function(int index) generator, {bool growable = true}) => List<T>.generate(toInt(), (int index) => generator(index), growable: growable);