Iterable<Parameter> get positionalParameters => requiredParameters.followedBy( optionalParameters.any((p) => p.named) ? [] : optionalParameters);