params property

List<Expression> params

Returns function parameters.

Collecting parameters is a non-trivial task but the result is cached so it's safe to call this again and again.

Implementation

List<css.Expression> get params {
  final expando = _expando ??= Expando();
  final existing = expando[this];
  if (existing != null) {
    return existing;
  }

  return expando[this] = _ExpressionsCollector.collect(this)
      .where((e) => (e is! css.OperatorComma) && (e is! css.OperatorSlash))
      .toList(growable: false);
}