QVarLike class

Represents a LIKE pattern value with configurable wildcard placement.

This specialized QVar subclass is designed for SQL LIKE operations, automatically adding wildcard characters (%) on the left and/or right sides of the value.

Example usage:

var startsWith = QVarLike('John', left: false, right: true); // 'John%'
var endsWith = QVarLike('Doe', left: true, right: false); // '%Doe'
var contains = QVarLike('Smith'); // '%Smith%' (default)
Inheritance

Constructors

QVarLike.new(String value, {bool left = true, bool right = true})
Creates a LIKE pattern value with configurable wildcard placement.

Properties

hashCode int
The hash code for this object.
no setterinherited
left bool
Whether to add wildcard on the left side
getter/setter pair
Whether to add wildcard on the right side
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value ↔ dynamic
The Dart value to be converted to SQL
getter/setter pairinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toSQL() String
Generates the SQL representation with proper escaping and wildcards.
override
toString() String
A string representation of this object.
inherited

Operators

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