getNullableType function

String getNullableType(
  1. String type
)

Implementation

String getNullableType(String type) {
  if (isTypeNullable(type)) {
    return type;
  }

  return '$type?';
}