DataField class

Definition a data object field inside a BaseDataBean.

If length is not set, the default of the given type is used: String: 255 Int: 32 (bit) Float: 64 (bit)

Inheritance
Implemented types
Implementers

Constructors

DataField(FieldType type, String layoutName, String name, {bool nullable = false, int? length})

Properties

hashCode int
The hash code for this object.
no setterinherited
layoutName String
final
length int
final
name String
final
nullable bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type FieldType
final

Methods

asc() Sort
Creates a Sort that orders ascending by this expression.
inherited
contains(dynamic other) Filter
Convenience method for creating a CompareFilter which matches if this contains other.
inherited
desc() Sort
Creates a Sort that orders descending by this expression.
inherited
equals(dynamic other) Filter
Convenience method for creating a CompareFilter which matches if this equals other.
inherited
greaterOrEqual(dynamic other) Filter
Convenience method for creating a CompareFilter which matches if this is greater than or equals other.
inherited
greaterThan(dynamic other) Filter
Convenience method for creating a CompareFilter which matches if this is greater than other.
inherited
isIn(dynamic other) Filter
Convenience method for creating a CompareFilter which matches if this is in other.
inherited
lessOrEqual(dynamic other) Filter
Convenience method for creating a CompareFilter which matches if this is less than or equals other.
inherited
lessThan(dynamic other) Filter
Convenience method for creating a CompareFilter which matches if this is less than other.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notEquals(dynamic other) Filter
Convenience method for creating a CompareFilter which matches if this does not equal other.
inherited
sort(bool ascending) Sort
Creates a Sort that orders by this expression.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

getDefaultLength(FieldType type) int