typeNativelySupported function

bool typeNativelySupported (DartType type)

Implementation

bool typeNativelySupported(DartType type) {
  return (type.element.library.isDartCore &&
          ["bool", "num", "int", "String"].contains(type.displayName)) ||
      type.displayName == "Uint8List";
}