OfflineFirstChecker class
Properties
-
argType
→ DartType
-
Retrieves type argument, i.e.
Type
in Future<Type>
or List<Type>
no setterinherited
-
asPrimitive
→ Type
-
no setterinherited
-
canSerializeArgType
→ bool
-
no setterinherited
-
fromJsonConstructor
→ ConstructorElement?
-
Retrieves the
fromJson
factory element.
If the constructor can't be found, null
is returned.
no setterinherited
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
hasSerdes
→ bool
-
This class has serialize methods and deserialize factories.
Useful for non-primitive types that are not associations but should still be
serialized and deserialized as a field.
no setter
-
isArgTypeAFuture
→ bool
-
no setterinherited
-
isArgTypeASibling
→ bool
-
If the sub type has super type
SqliteModel
Returns true for Future<SqliteModel>
,
List<Future<SqliteModel>>
, and List<SqliteModel>
.
no setterinherited
-
isBool
→ bool
-
no setterinherited
-
isDartCoreType
→ bool
-
If this is a bool, DateTime, double, int, num, or String
no setterinherited
-
isDateTime
→ bool
-
no setterinherited
-
isDouble
→ bool
-
no setterinherited
-
isEnum
→ bool
-
no setterinherited
-
isFuture
→ bool
-
no setterinherited
-
isInt
→ bool
-
no setterinherited
-
isIterable
→ bool
-
no setterinherited
-
isList
→ bool
-
no setterinherited
-
isMap
→ bool
-
no setterinherited
-
isNullable
→ bool
-
no setterinherited
-
isNum
→ bool
-
no setterinherited
-
isSerializable
→ bool
-
Not all Types are parseable. For consistency, one catchall before smaller checks
no setter
-
isSet
→ bool
-
no setterinherited
-
isSibling
→ bool
-
If this is a class similarly annotated by the current generator.
no setterinherited
-
isString
→ bool
-
no setterinherited
-
isUnFuturedTypeNullable
→ bool
-
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
superClassTypeArgs
→ List<DartType>
-
The arguments passed to a super class definition.
For example, a field
final Currency amount
with a type definition
class Currency extends OfflineFirstSerdes<T, X, Y> {}
would return [T, X, Y]
.
no setterinherited
-
targetType
→ DartType
-
The checked type
finalinherited
-
toJsonMethod
→ MethodElement?
-
Retrieves the
toJson
method element.
If the method can't be found, null
is returned.
no setterinherited
-
typeArguments
→ List<DartType>?
-
Returns type arguments of targetType. For example, given
Map<Key, Value>
,
[Key, Value]
is returned. If the targetType does not declare type arguments,
return is null
.
no setterinherited
-
unFuturedArgType
→ DartType
-
argType without
Future
if it is a Future
.
no setterinherited
-
unFuturedType
→ DartType
-
targetType without
Future
if it is a Future
no setterinherited