isSimpleType property
bool
isSimpleType
Determine whether the current instance is a simple type, including bool, int, double, String, Map, List, Set.
Can be called in the following ways,
2.isSimpleType
2.runtimeType.isSimpleType
Implementation
bool get isSimpleType => isPrimitiveType || isList || isMap || isSet;