getCommaValue static method

String? getCommaValue(
  1. String content,
  2. String key, {
  3. String? separator,
  4. String? equalSymbol,
})

Implementation

static String? getCommaValue(String content, String key, {String? separator, String? equalSymbol}) {
  List<int>? indexes = getCommaValueIndexes(content, key, separator: separator ?? ';', equalSymbol: equalSymbol ?? '=');
  if (indexes != null) {
    return content.substring(indexes.first, indexes.last);
  }
  return null;
}