isExactlyType method

bool isExactlyType(
  1. DartType staticType
)

Returns true if representing the exact same type as staticType.

This will always return false for types without a backingclass such as void or function types.

Implementation

bool isExactlyType(DartType staticType) {
  final element = staticType.element;
  if (element != null) {
    return isExactly(element);
  } else {
    return false;
  }
}