getHostDatatype function
HostDatatype
getHostDatatype(
- TypeDeclaration type,
- String? builtinResolver(), {
- String customResolver()?,
Calculates the HostDatatype for the provided TypeDeclaration.
It will check the field against classes
, the list of custom classes, to
check if it is a builtin type. builtinResolver
will return the host
datatype for the Dart datatype for builtin types.
customResolver
can modify the datatype of custom types.
Implementation
HostDatatype getHostDatatype(
TypeDeclaration type, String? Function(TypeDeclaration) builtinResolver,
{String Function(String)? customResolver}) {
return _getHostDatatype(type, builtinResolver,
customResolver: customResolver);
}