isMatch property

bool get isMatch

Gets whether the current input matches the confirm text.

Implementation

bool get isMatch {
  final input = value;
  if (caseSensitive) {
    return input == confirmText;
  } else {
    return input.toLowerCase() == confirmText.toLowerCase();
  }
}