typifyWith method

String typifyWith(
  1. String type
)

Implementation

String typifyWith(String type) {
  final _this = this.toString();
  if (this == null || _this.isEmpty) {
    return type;
  }
  // If int use #, else use ##
  return '$type#${_this.isNotEmpty ? ('${this is! int ? '#' : ''}$_this') : ''}';
}