isBasicType<T> static method

bool isBasicType<T>([
  1. Type? type
])

Implementation

static bool isBasicType<T>([Type? type]) {
  type ??= T;

  if (isPrimitiveType<T>(type) || TypeParser.isCollectionType<T>(type)) {
    return true;
  }

  if (type == DateTime ||
      type == Time ||
      type == BigInt ||
      type == Decimal ||
      type == DynamicInt ||
      type == DynamicNumber ||
      type == Uint8List) return true;

  return false;
}