Collate class Null safety

Collating functions used to compare texts in SQL.

See also:

Annotations
  • @sealed

Constructors

Collate(String name)
Create a collation from the name to use in sql.
const

Properties

hashCode int
The hash code for this object.
read-onlyinherited
name String
The name of this collation in SQL.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

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

Operators

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

Constants

binary → const Collate
Instruct sqlite to compare string data using memcmp(), regardless of text encoding.
Collate('BINARY')
noCase → const Collate
The same as Collate.binary, except the 26 upper case characters of ASCII are folded to their lower case equivalents before the comparison is performed. Note that only ASCII characters are case folded. SQLite does not attempt to do full UTF case folding due to the size of the tables required.
Collate('NOCASE')
rTrim → const Collate
The same as Collate.binary, except that trailing space characters are ignored.
Collate('RTRIM')