CaseWhen<V> class
A CASE WHEN ... THEN ... expression, nullable for as long as no ELSE
branch has been added.
- Inheritance
-
- Object
- Expression<
V?> - CaseWhen
- Available extensions
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
toJS
→ JSPromise<
T> -
Available on Future<
A JSPromise that either resolves with the result of the completed Future or rejects with an object that contains its error.T> , provided by the FutureOfJSAnyToJSPromise extensionno setter -
toJS
→ JSPromise<
JSAny?> -
Available on Future<
A JSPromise that either resolves once this Future completes or rejects with an object that contains its error.void> , provided by the FutureOfVoidToJSPromise extensionno setter -
transformer
→ ColumnTransformer<
V?, Object?> ? -
How this operand's values convert to and from their stored form.
no setteroverride
Methods
-
as(
String alias) → AliasedExpression< V?> -
Give this expression an output name, as
Column.asdoes for a column.inherited -
asStream(
) → Stream< V?> -
Creates a Stream containing the result of this future.
inherited
-
between(
ColumnOr< V> low, {required ColumnOr<V> and}) → SQL -
Available on Expression<
Value of this expression is within the inclusiveV> , provided by the NumericExpressionOperators extensionlowtoandrange. -
between(
ColumnOr< V> low, {required ColumnOr<V> and}) → SQL -
Available on Expression<
Value of this expression is within the inclusiveV> , provided by the StringExpressionOperators extensionlowtoandrange, lexicographically. -
build(
) → SQL -
Build the underlying SQL for this expression.
override
-
catchError(
Function onError, {bool test(Object error)?}) → Future< V?> -
Handles errors emitted by this Future.
inherited
-
decode(
Object? input) → V? -
A stored value back in this operand's own type.
inherited
-
encode(
V? input) → Object? -
This operand's value in its stored form.
inherited
-
equals(
ColumnOr< V> value) → SQL -
Available on Expression<
Value of this expression equalsV> , provided by the ExpressionOperators extensionvalue. -
greaterThan(
ColumnOr< V> value) → SQL -
Available on Expression<
Value of this expression is greater thanV> , provided by the NumericExpressionOperators extensionvalue. -
greaterThan(
ColumnOr< V> value) → SQL -
Available on Expression<
Lexicographic ordering.V> , provided by the StringExpressionOperators extension -
greaterThanOrEqual(
ColumnOr< V> value) → SQL -
Available on Expression<
Value of this expression is greater than or equal toV> , provided by the NumericExpressionOperators extensionvalue. -
greaterThanOrEqual(
ColumnOr< V> value) → SQL -
Available on Expression<
Lexicographic ordering.V> , provided by the StringExpressionOperators extension -
ignore(
) → void -
Available on Future<
Completely ignores this future and its result.T> , provided by the FutureExtensions extension -
inList(
List< ColumnOr< values) → SQLV> > -
Available on Expression<
Value of this expression is inV> , provided by the ExpressionOperators extensionvalues. -
inQuery(
ToQuery< dynamic, V> query) → SQL -
Available on Expression<
Value of this expression is among the rowsV> , provided by the ExpressionOperators extensionqueryreturns. -
isNotNull(
) → SQL -
Available on Expression<
Value of this expression is not null.V> , provided by the ExpressionOperators extension -
isNull(
) → SQL -
Available on Expression<
Value of this expression is null.V> , provided by the ExpressionOperators extension -
lessThan(
ColumnOr< V> value) → SQL -
Available on Expression<
Value of this expression is less thanV> , provided by the NumericExpressionOperators extensionvalue. -
lessThan(
ColumnOr< V> value) → SQL -
Available on Expression<
Lexicographic ordering.V> , provided by the StringExpressionOperators extension -
lessThanOrEqual(
ColumnOr< V> value) → SQL -
Available on Expression<
Value of this expression is less than or equal toV> , provided by the NumericExpressionOperators extensionvalue. -
lessThanOrEqual(
ColumnOr< V> value) → SQL -
Available on Expression<
Lexicographic ordering.V> , provided by the StringExpressionOperators extension -
like(
ColumnOr< V> value) → SQL -
Available on Expression<
Value of this expression matches theV> , provided by the StringExpressionOperators extensionvaluepattern. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notEquals(
ColumnOr< V> value) → SQL -
Available on Expression<
Value of this expression does not equalV> , provided by the ExpressionOperators extensionvalue. -
onError<
E extends Object> (FutureOr< T> handleError(E error, StackTrace stackTrace), {bool test(E error)?}) → Future<T> -
Available on Future<
Handles errors on this future.T> , provided by the FutureExtensions extension -
operand(
ColumnOr< V> value) → Object? -
Available on Expression<
V> , provided by the ExpressionOperators extension -
orElse(
ColumnOr< V> fallback) → CaseElse<V> -
Closes the expression with
ELSE [fallback], so it always yields a value. -
then<
R> (FutureOr< R> onValue(V? value), {Function? onError}) → Future<R> -
Register callbacks to be called when this future completes.
inherited
-
timeout(
Duration timeLimit, {FutureOr< V?> onTimeout()?}) → Future<V?> -
Stop waiting for this future after
timeLimithas passed.inherited -
toString(
) → String -
A string representation of this object.
inherited
-
when(
Filter when, {required ColumnOr< V> then}) → CaseWhen<V> -
Adds a
WHEN [when] THEN [then]branch. -
whenComplete(
FutureOr< void> action()) → Future<V?> -
Registers a function to be called when this future completes.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited