TypeReflection<T> class
Dart Type reflection.
- Available extensions
Constructors
-
TypeReflection(Type type, [List<
Object> ? arguments]) -
const
- TypeReflection.from(Object o)
-
factory
Properties
-
arguments
→ List<
TypeReflection> -
Returns the arguments of this type.
Example:
Map<String, int>will return[String, int].no setter - arguments0 → TypeReflection?
-
Available on TypeReflection<
The argument at indexT> , provided by the TypeReflectionEntityExtension extension0(in arguments).no setter -
argumentsAsTypeInfo
→ List<
TypeInfo> -
Returns the arguments of this type as TypeInfo.
no setter
- argumentsLength → int
-
Returns the arguments length.
no setter
- entityType → Type?
-
Available on TypeReflection<
Returns a valid entity Type.T> , provided by the TypeReflectionEntityExtension extensionno setter - hasArguments → bool
-
Returns
trueif this type has arguments.no setter - hashCode → int
-
The hash code for this object.
no setteroverride
- isBasicType → bool
-
Returns
trueif type isPrimitiveType orisCollection.no setter - isBigInt → bool
-
Returns
trueif type is BigInt.no setter - isBoolType → bool
-
Returns
trueif type isbool.no setter - isCollectionType → bool
-
Returns
trueif type is a collection (List, Iterable, Map or Set).no setter - isDoubleType → bool
-
Returns
trueif type isdouble.no setter - isDynamicType → bool
-
Returns
trueif type isdynamic.no setter - isEntityReferenceListType → bool
-
Available on TypeReflection<
ReturnsT> , provided by the TypeReflectionEntityExtension extensiontrueif type is equals to EntityReferenceList.no setter - isEntityReferenceType → bool
-
Available on TypeReflection<
ReturnsT> , provided by the TypeReflectionEntityExtension extensiontrueif type is equals to EntityReference.no setter - isEntityType → bool
-
Returns
trueif type can be an entity (![isObjectOrDynamicType] && ![isBasicType]).no setter - isIntType → bool
-
Returns
trueif type isint.no setter - isIterableEntity → bool
-
Returns
trueif type isIterableType of entities.no setter - isIterableType → bool
-
Returns
trueif type isIterable.no setter - isListEntity → bool
-
Returns
trueif type is a List of entities.no setter - isListEntityOrReference → bool
-
Available on TypeReflection<
ReturnsT> , provided by the TypeReflectionEntityExtension extensiontrueif isListEntity OR isEntityReferenceListType.no setter - isListType → bool
-
Returns
trueif type is a List.no setter - isMapType → bool
-
Returns
trueif type isMap.no setter - isNumberType → bool
-
Returns
trueif type isint,doubleornum.no setter - isNumericType → bool
-
Returns
trueif type isint,double,numor BigInt. See isNumberType and isBigIntno setter - isNumType → bool
-
Returns
trueif type isnum.no setter - isObjectOrDynamicType → bool
-
Returns
trueif type isObjectordynamic.no setter - isObjectType → bool
-
Returns
trueif type isObject.no setter - isPrimitiveType → bool
-
Returns
trueif type isString,int,double,numorbool.no setter - isSetType → bool
-
Returns
trueif type is a Set.no setter - isStringType → bool
-
Returns
trueif type isString.no setter - isValidListEntityOrReferenceType → bool
-
Available on TypeReflection<
ReturnsT> , provided by the TypeReflectionEntityExtension extensiontrueif isListEntityOrReference AND EntityHandler.isValidEntityType for the entity type (argumentType0).no setter - isValidListEntityType → bool
-
Available on TypeReflection<
ReturnsT> , provided by the TypeReflectionEntityExtension extensiontrueif isListEntity AND EntityHandler.isValidEntityType for the entity type (argumentType0).no setter - listEntityOrReferenceType → TypeReflection?
-
Available on TypeReflection<
Returns the entity TypeInfo if isListEntityOrReference.T> , provided by the TypeReflectionEntityExtension extensionno setter - listEntityType → TypeReflection?
-
The TypeReflection of the List elements type.
no setter
- listType → TypeReflection?
-
The TypeReflection of the List elements type.
no setter
- mapKeyType → TypeReflection?
-
The TypeReflection of the Map key type.
no setter
- mapValueType → TypeReflection?
-
The TypeReflection of the Map value type.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → Type
-
The Dart Type.
final
- typeInfo → TypeInfo
-
Returns a TypeInfo of this instance.
no setter
- typeName → String
-
Returns the type name.
no setter
Methods
-
equalsArgumentsTypes(
List< Type> types) → bool -
Returns
trueif arguments have equalstypes. -
isOfType(
Type type, [List< Type> ? arguments]) → bool -
Returns
trueif the parametertypeis equals to fieldtype. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Properties
-
tFutureOrVoid
→ TypeReflection<
FutureOr< void> > -
final
-
tFutureVoid
→ TypeReflection<
Future< void> > -
final
-
tVoid
→ TypeReflection<
void> -
final
Static Methods
Constants
-
tBigInt
→ const TypeReflection<
BigInt> -
tBool
→ const TypeReflection<
bool> -
tDouble
→ const TypeReflection<
double> - tDynamic → const TypeReflection
-
tFunction
→ const TypeReflection<
Function> -
tFuture
→ const TypeReflection<
Future> -
tFutureBool
→ const TypeReflection<
Future< bool> > -
tFutureDynamic
→ const TypeReflection<
Future> -
tFutureInt
→ const TypeReflection<
Future< int> > -
tFutureObject
→ const TypeReflection<
Future< Object> > -
tFutureOr
→ const TypeReflection<
FutureOr> -
tFutureOrBool
→ const TypeReflection<
FutureOr< bool> > -
tFutureOrDynamic
→ const TypeReflection<
FutureOr> -
tFutureOrInt
→ const TypeReflection<
FutureOr< int> > -
tFutureOrObject
→ const TypeReflection<
FutureOr< Object> > -
tFutureOrString
→ const TypeReflection<
FutureOr< String> > -
tFutureString
→ const TypeReflection<
Future< String> > -
tInt
→ const TypeReflection<
int> -
tList
→ const TypeReflection<
List> -
tListBool
→ const TypeReflection<
List< bool> > -
tListDouble
→ const TypeReflection<
List< double> > -
tListDynamic
→ const TypeReflection<
List> -
tListInt
→ const TypeReflection<
List< int> > -
tListNum
→ const TypeReflection<
List< num> > -
tListObject
→ const TypeReflection<
List< Object> > -
tListString
→ const TypeReflection<
List< String> > -
tMap
→ const TypeReflection<
Map> -
tMapObjectObject
→ const TypeReflection<
Map< Object, Object> > -
tMapStringDynamic
→ const TypeReflection<
Map< String, dynamic> > -
tMapStringObject
→ const TypeReflection<
Map< String, Object> > -
tMapStringString
→ const TypeReflection<
Map< String, String> > -
tNum
→ const TypeReflection<
num> -
tObject
→ const TypeReflection<
Object> -
tSet
→ const TypeReflection<
Set> -
tSetDynamic
→ const TypeReflection<
Set> -
tSetInt
→ const TypeReflection<
Set< int> > -
tSetObject
→ const TypeReflection<
Set< Object> > -
tSetString
→ const TypeReflection<
Set< String> > -
tString
→ const TypeReflection<
String>