toList method

List<String> toList(
  1. String connector, {
  2. bool? isDecode,
})

根据连接字符拼接的字符串转换成list 示例:"2&71&3&25" connector连接符 isDecodevalue是否需要Uri.decodeComponent解码

Implementation

List<String> toList(String connector, {bool? isDecode}) {
  if (connector.isEmptyString || this.isEmptyString) {
    return [];
  }
  return this.split(connector);
}