DateTimeType class Null safety

Maps DateTime values from and to sql

Inheritance
Annotations
  • @_deprecated

Constructors

DateTimeType()
Constant constructor used by the type system
const

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
sqlName String
The name of this type in sql, such as TEXT.
read-only, override

Methods

mapFromDatabaseResponse(dynamic response) DateTime?
Maps the response from sql back to a readable dart type.
override
mapToSqlConstant(DateTime? content) String
Maps the given content to a sql literal that can be included in the query string.
override
mapToSqlVariable(DateTime? content) int?
Maps the content to a value that we can send together with a prepared statement to represent the given value.
override
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