QMath class

Represents a mathematical expression or function in a SELECT clause.

This class allows embedding raw SQL mathematical expressions, aggregate functions, or any custom SQL expressions in the SELECT clause.

Example usage:

var count = QMath('COUNT(*)'); // COUNT(*)
var sum = QMath('SUM(price)'); // SUM(price)
var calc = QMath('price * quantity'); // price * quantity
Implemented types

Constructors

QMath.new(String math)
Creates a mathematical/functional SELECT field.

Properties

hashCode int
The hash code for this object.
no setterinherited
math String
The mathematical expression or function as raw SQL
getter/setter pair
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
toSQL() String
Returns the raw mathematical expression as-is.
override
toString() String
A string representation of this object.
inherited

Operators

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