type property

String get type

Implementation

String get type {
  final type = toString();
  if (!type.endsWith('?')) return type;

  return type.substring(0, type.length - 1);
}