SelectorValidationResult class

Result of a selector validation

Constructors

SelectorValidationResult.new({required bool isValid, required String originalSelector, String? repairedSelector, String? errorMessage, int elementCount = 0})
Creates a new SelectorValidationResult with the given parameters
SelectorValidationResult.invalid(String selector, {String? errorMessage})
Creates a new SelectorValidationResult for an invalid selector
factory
SelectorValidationResult.repaired(String originalSelector, String repairedSelector, {int elementCount = 0})
Creates a new SelectorValidationResult for a repaired selector
factory
SelectorValidationResult.valid(String selector, {int elementCount = 0})
Creates a new SelectorValidationResult for a valid selector
factory

Properties

elementCount int
The number of elements found with the selector
final
errorMessage String?
The error message, if any
final
hashCode int
The hash code for this object.
no setterinherited
isValid bool
Whether the selector is valid
final
originalSelector String
The original selector
final
repairedSelector String?
The repaired selector, if any
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited