getProductListParameters method Null safety

String getProductListParameters(
  1. String key
)

Implementation

static String getProductListParameters(final String key) {
  final int pos = key.indexOf(_keySeparator);
  if (pos < 0) {
    throw Exception('Unknown key format without "$_keySeparator": $key');
  }
  if (pos + _keySeparator.length == key.length) {
    return '';
  }
  final String tmp = key.substring(pos + _keySeparator.length);
  return utf8.decode(base64.decode(tmp));
}