GlobSegment constructor

GlobSegment(
  1. String? pattern,
  2. Pattern expression, {
  3. bool? crossesDirectory,
  4. bool? onlyDirectory,
  5. bool? strict,
})

Implementation

GlobSegment(this.pattern, Pattern expression,
    {this.crossesDirectory, this.onlyDirectory, this.strict}) {
  if (pattern == null) {
    throw ArgumentError.notNull('pattern');
  }

  if (crossesDirectory == null) {
    throw ArgumentError.notNull('crossesDirectory');
  }

  if (strict == null) {
    throw ArgumentError.notNull('strict');
  }

  if (onlyDirectory == null) {
    throw ArgumentError.notNull('onlyDirectory');
  }

  _expression = expression;
}