True for null, num, String, bool
bool isBasicTypeOrNull(Object? value) { if (value == null) { return true; } else { return isBasicType(value); } }