collectionFromMid static method

String collectionFromMid(
  1. String mid,
  2. String prefix
)

Implementation

static String collectionFromMid(String mid, String prefix) {
  int pos = mid.indexOf('=');
  if (pos >= 0 && pos < mid.length - 1) return '${prefix}_${mid.substring(0, pos)}';
  return '${prefix}_unknown';
}