pathVariables property Null safety

List<String> pathVariables

Returns a list of all path variables required for this operation.

Implementation

List<String> get pathVariables {
  return [_pathVariable1, _pathVariable2, _pathVariable3, _pathVariable4]
      .fold([], (acc, s) {
    if (s != null) {
      acc.add(s);
    }
    return acc;
  });
}