SimpleBanListValidator constructor

const SimpleBanListValidator({
  1. required List<TokenType> bannedLeadingTokenTypes,
  2. bool bannedLeadingSelf = false,
  3. required List<TokenType> bannedTrailingTokenTypes,
  4. bool bannedTrailingSelf = false,
})

Creates the validator.

Implementation

const SimpleBanListValidator({
  required this.bannedLeadingTokenTypes,
  this.bannedLeadingSelf = false,
  required this.bannedTrailingTokenTypes,
  this.bannedTrailingSelf = false,
});