BindVarIfThenElse class
Pair of variable name-value to bind they to query with condition. Sample:
Query(
[
LineIfThenElse(
tag != null, 'LET tag=@tag', 'LET other_name=@other_name'),
// ... list of query lines (see Line(), LineIfThen(), IfThemElse() for details )
],
bindVars: [ BindVarIfThenElse(
tag!=null, 'tag', tag, 'other_name', other_value ) ],
).toMap()
- Inheritance
-
- Object
- BindNameValuePair
- BindVarIfThenElse
Constructors
- BindVarIfThenElse(bool condition, String nameIfTrue, dynamic valueIfTrue, String nameIfFalse, dynamic valueIfFalse)
Properties
-
bindNameValuePair
↔ Map<
String, dynamic> -
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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