isSupportedPrimitiveType function

bool isSupportedPrimitiveType(
  1. dynamic attributeValue
)

Returns true if attributeValue is supported primitive type, otherwise false

Implementation

bool isSupportedPrimitiveType(dynamic attributeValue) {
  return attributeValue is String ||
      attributeValue is int ||
      attributeValue is double ||
      attributeValue is num ||
      attributeValue is bool;
}