isVoid function

bool isVoid(
  1. TypeMirror type
)

Returns true if type represents 'void'.

Implementation

bool isVoid(TypeMirror type) {
  return MirrorSystem.getName(type.simpleName) == 'void';
}