Checks if a type is nullable
bool isNullableType(Type type) { final typeString = type.toString(); return typeString.endsWith('?'); }