ContainsRule constructor

const ContainsRule(
  1. String substring, {
  2. String? errorMessage,
})

Creates a new ContainsRule with the given substring and optional errorMessage.

Implementation

const ContainsRule(this.substring, {super.errorMessage});