nonNullableTypeName property

String nonNullableTypeName

returns the name without the nullable flag

Implementation

String get nonNullableTypeName => typeName.endsWith('?')
    ? typeName.substring(0, typeName.length - 1)
    : typeName;