patternName property

String get patternName

Gets the pattern name for the task.

Returns a string representing the pattern name.

Implementation

String get patternName => switch (_always) {
      true => 'always',
      false => include.map((e) {
          return switch (e) {
            Glob() => e.pattern,
            RegExp() => e.pattern,
            String() => e,
            _ => '$e',
          };
        }).join(', '),
    };